/* Variable Font Declarations */
@font-face {
    font-family: 'Space Grotesk';
    src: url('./fonts/SpaceGrotesk-VariableFont_wght.ttf') format('truetype-variations');
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('./fonts/Manrope-VariableFont_wght.ttf') format('truetype-variations');
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

/* CSS Variables */
:root {

    --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #f59e0b;
    --accent-color: #10b981;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Apply fonts */
body {
    font-family: var(--font-body);
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6,
.hero-title,
.section-title {
    font-family: var(--font-heading);
}

/* Specific weight assignments */
.hero-title {
    font-weight: 700;
}

.section-title {
    font-weight: 600;
}

h3 {
    font-weight: 600;
}

.hero-subtitle {
    font-weight: 300;
}

.about-description {
    font-weight: 400;
}

/* Tech tags with medium weight */
.tech-tag {
    font-family: var(--font-heading);
    font-weight: 500;
}

/* Button styling */
.btn {
    font-weight: 600;
}


/* Language Toggle */
.language-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    background: var(--bg-white);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    padding: 0.25rem;
}

.lang-btn {
    background: none;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
}

.lang-btn:not(.active):hover {
    background: var(--bg-light);
}

/* Header */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
}

.logo-img {
    height: 2.5rem;
    width: auto;
}

.nav {
    display: none;
}

.nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    margin-left: 2rem;
    transition: color 0.2s ease;
}

.nav a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: var(--gradient-hero);
    color: white;
    padding: 8rem 0 4rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Tech Stack */
.tech-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.tech-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    transition: transform 0.2s ease;
}

.tech-item:hover {
    transform: translateY(-5px);
}

.tech-item i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.tech-item span {
    display: block;
    font-weight: 500;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.about h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.credentials {
    margin: 2rem 0;
}

.credential {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.credential i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.credential h4 {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.credential p {
    color: var(--text-light);
    font-size: 0.875rem;
}

.about-description {
    color: var(--text-light);
    font-size: 1.125rem;
    line-height: 1.7;
}

.profile-pic {
    width: 100%;
    max-width: 160px;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    margin: 0 auto;
    display: block;
}

/* Services Section */
.services {
    padding: 5rem 0;
    background: var(--bg-white);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.service-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform 0.2s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    width: 4rem;
    height: 4rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 1.5rem;
    color: white;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Projects Section */
.projects {
    padding: 5rem 0;
    background: var(--bg-light);
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.project-card {
    background: var(--bg-white);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.2s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-content {
    padding: 2rem;
}

.project-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.project-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.2rem;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: var(--bg-white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.contact h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.contact-description {
    color: var(--text-light);
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-item i {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-right: 1rem;
    width: 1.5rem;
}

.contact-item a {
    color: var(--text-dark);
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-light);
    transition: all 0.2s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.social-links img {
    width: 1.25rem;
    height: 1.25rem;
}

.contact-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 1rem;
}

.contact-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.contact-card ul {
    list-style: none;
}

.contact-card li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.contact-card li i {
    color: var(--primary-color);
    margin-right: 0.75rem;
    width: 1.25rem;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 2rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
}

.footer-logo {
    height: 2rem;
    width: auto;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    font-size: 0.875rem;
    opacity: 0.8;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 0.875rem;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-legal {
    font-size: 0.75rem;
    opacity: 0.6;
}

/* Responsive Design */
@media (min-width: 640px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .tech-stack {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .nav {
        display: block;
    }

    .logo-img {
        height: 3rem;
        width: auto;
    }
    
    .hero .container {
        grid-template-columns: 1fr 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr 300px;
    }
    
    .contact-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr auto 1fr;
        text-align: left;
        align-items: center;
    }
    
    .footer-brand {
        text-align: left;
    }
    
    .footer-legal {
        text-align: right;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.btn:focus,
.lang-btn:focus,
.nav a:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}