@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-red: #e63946;
    --primary-blue: #1d3557;
    --accent-blue: #457b9d;
    --accent-light: #a8dadc;
    --text-dark: #1a1a1a;
    --text-muted: #555555;
    --bg-color: #ffffff;
    --surface-color: #f8f9fa;
    --border-color: #eaeaea;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-blue);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-red);
    border-radius: 2px;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    letter-spacing: -0.5px;
}

.nav-brand span {
    color: var(--primary-red);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-red);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active-link::after {
    width: 100%;
}

.nav-link:hover, .nav-link.active-link {
    color: var(--primary-red);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
}

/* Footer */
.footer {
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    color: var(--text-muted);
    font-weight: 500;
}

.social-link:hover {
    color: var(--primary-blue);
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding: 2rem 2rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Hero Section */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, var(--surface-color) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -15%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.05) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(29, 53, 87, 0.05) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 10;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(29, 53, 87, 0.1);
    color: var(--primary-blue);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 4.5rem;
    letter-spacing: -1.5px;
    color: var(--text-dark);
}

.hero-title span {
    color: var(--primary-blue);
    background: linear-gradient(120deg, var(--primary-blue), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    font-weight: 400;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-red);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(230, 57, 70, 0.3);
}

.btn-primary:hover {
    background-color: #d90429;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(230, 57, 70, 0.5);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
    background-color: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.skill-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 0;
    background-color: var(--primary-red);
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-light);
}

.skill-card:hover::after {
    width: 100%;
}

.skill-icon {
    width: 72px;
    height: 72px;
    background-color: rgba(29, 53, 87, 0.05);
    color: var(--primary-blue);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    transition: var(--transition);
}

.skill-icon svg {
    width: 32px;
    height: 32px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.skill-card:hover .skill-icon {
    background-color: var(--primary-blue);
    color: white;
    transform: scale(1.1);
}

.skill-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.skill-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Feature Section (About Page) */
.feature-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}

.feature-wrapper:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
    min-width: 300px;
}

.feature-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.feature-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.feature-image {
    flex: 1;
    min-width: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-blue) 100%);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-image svg {
    width: 120px;
    height: 120px;
    color: white;
    opacity: 0.8;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.contact-info {
    background-color: var(--primary-blue);
    color: white;
    padding: 4rem;
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.4) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
}

.contact-info h2 {
    color: white;
    font-size: 2.5rem;
}

.contact-info p {
    color: var(--accent-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.info-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.info-icon svg {
    width: 24px;
    height: 24px;
}

.info-content h4 {
    color: white;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.info-content p {
    color: var(--accent-light);
    margin-bottom: 0;
    font-size: 0.95rem;
}

.contact-form {
    padding: 4rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--surface-color);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(29, 53, 87, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Page Header for non-Home pages */
.page-header {
    padding: 6rem 0 3rem;
    background: linear-gradient(135deg, var(--surface-color) 0%, white 100%);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-size: 3rem;
    color: var(--primary-blue);
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 1rem auto 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .contact-info, .contact-form {
        padding: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: var(--shadow-md);
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-link {
        display: block;
        padding: 1rem 2rem;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero {
        text-align: center;
        padding-top: 3rem;
    }
    
    .hero-actions {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .hero-content {
        margin: 0 auto;
    }

    .feature-wrapper, .feature-wrapper:nth-child(even) {
        flex-direction: column;
        gap: 2rem;
    }
    
    .page-header {
        padding: 4rem 0 2rem;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
}
