:root {
    /* Color variables */
    --color-bg: #0f172a;
    --color-bg-alt: #1e293b;
    --color-primary: #38bdf8;
    --color-secondary: #0ea5e9;
    --color-accent: #7dd3fc;
    --color-text: #f1f5f9;
    --color-text-muted: #94a3b8;
    --color-border: #334155;

    /* Typography */
    --font-main: 'Poppins', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;

    /* Effects */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    --gradient-accent: linear-gradient(135deg, var(--color-accent), var(--color-primary));
}

/* Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    transition: background-color var(--transition-normal);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.3;
    font-weight: 600;
}

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

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    font-family: var(--font-main);
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.6);
    transform: translateY(-2px);
    color: white;
}

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

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-bg);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: var(--space-sm) 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: var(--transition-normal);
}

.logo:hover {
    transform: translateY(-2px);
    filter: brightness(1.2);
}

/* Navigation */
.main-nav {
    transition: var(--transition-normal);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-text);
}

.nav-list {
    display: flex;
    gap: var(--space-md);
    list-style: none;
}

.nav-link {
    position: relative;
    font-weight: 500;
    padding: 0.25rem 0;
}

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

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: var(--space-sm);
    animation: fadeInUp 1s ease forwards;
}

.hero-title .greeting {
    display: block;
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.hero-title .name {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 3.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: var(--space-md);
    color: var(--color-text-muted);
    animation: fadeInUp 1s ease forwards 0.2s;
    opacity: 0;
    font-weight: 400;
    line-height: 1.6;
}

.hero .btn {
    animation: fadeInUp 1s ease forwards 0.4s;
    opacity: 0;
}

.hero-image {
    position: relative;
    width: 400px;
    height: 400px;
    animation: float 6s ease-in-out infinite;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(15px);
    opacity: 0.6;
    animation: pulse 8s ease-in-out infinite alternate;
}

.shape-1 {
    top: 50px;
    left: 50px;
    width: 200px;
    height: 200px;
    background: var(--color-primary);
    animation-delay: 0s;
}

.shape-2 {
    bottom: 50px;
    right: 50px;
    width: 150px;
    height: 150px;
    background: var(--color-secondary);
    animation-delay: 2s;
}

.shape-3 {
    bottom: 100px;
    left: 100px;
    width: 100px;
    height: 100px;
    background: var(--color-accent);
    animation-delay: 4s;
}

/* Update the hero buttons styles */
.hero-buttons {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.hero-buttons .btn {
    flex: 1;
    text-align: center;
    min-width: 160px;
    /* Add these properties */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px; /* Fixed height for both buttons */
    white-space: nowrap; /* Prevent text wrapping */
}

/* Sections */
.section {
    padding: var(--space-xl) 0;
    position: relative;
}

.section-alt {
    background-color: var(--color-bg-alt);
}

.section-title {
    position: relative;
    font-size: 2.5rem;
    margin-bottom: var(--space-lg);
    display: inline-block;
    z-index: 1;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-sm);
}

.section-title::before {
    content: attr(data-text);
    position: absolute;
    left: -5px;
    top: -5px;
    width: 100%;
    height: 100%;
    color: rgba(56, 189, 248, 0.1);
    font-size: 3.5rem;
    font-weight: 700;
    z-index: -1;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: var(--space-md);
    font-size: 1.1rem;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.skill-group h3 {
    margin-bottom: var(--space-md);
    font-size: 1.5rem;
    color: var(--color-primary);
}

.skill-bars {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.skill-bar {
    width: 100%;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-xs);
    font-weight: 500;
}

.skill-progress {
    height: 8px;
    background-color: var(--color-border);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-sm);
    position: relative;
    width: 0;
    transition: width 1.5s ease;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.skill-tag {
    background-color: rgba(56, 189, 248, 0.1);
    color: var(--color-primary);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(56, 189, 248, 0.2);
    font-weight: 500;
    transition: var(--transition-normal);
}

.skill-tag:hover {
    background-color: rgba(56, 189, 248, 0.2);
    transform: translateY(-2px);
}

.skill-logo {
    display: inline-block;
    margin: 0.25rem;
    transition: var(--transition-normal);
}

.skill-logo img {
    height: 32px;
    width: auto;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-normal);
    filter: brightness(0.9);
}

.skill-logo:hover {
    transform: translateY(-2px) scale(1.05);
}

.skill-logo:hover img {
    filter: brightness(1.1);
}

/* Experience Section */
.experience-timeline {
    position: relative;
    padding-left: 2rem;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom,
            var(--color-primary),
            var(--color-secondary),
            var(--color-accent));
}

.timeline-item {
    position: relative;
    padding-bottom: var(--space-lg);
}

.timeline-dot {
    position: absolute;
    left: -2.5rem;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: 3px solid var(--color-bg);
    z-index: 1;
}

.timeline-date {
    display: inline-block;
    margin-bottom: var(--space-xs);
    font-weight: 600;
    color: var(--color-primary);
}

.timeline-content {
    background-color: rgba(30, 41, 59, 0.7);
    padding: var(--space-md);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border-left: 3px solid var(--color-primary);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.timeline-content h3 {
    margin-bottom: var(--space-xs);
}

.timeline-content h4 {
    color: var(--color-text-muted);
    font-weight: 500;
    margin-bottom: var(--space-xs);
}

.timeline-content p {
    margin-bottom: var(--space-xs);
}

/* Education Section */
.education-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.education-card {
    background-color: rgba(15, 23, 42, 0.7);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    padding: var(--space-md);
    transition: var(--transition-normal);
    border: 1px solid var(--color-border);
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

.education-icon {
    color: var(--color-primary);
    margin-right: var(--space-md);
    display: flex;
    align-items: flex-start;
}

.education-info h3 {
    margin-bottom: var(--space-xs);
}

.education-info h4 {
    color: var(--color-text-muted);
    font-weight: 400;
}

/* Footer */
.site-footer {
    background-color: var(--color-bg-alt);
    padding: var(--space-md) 0;
    margin-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: var(--color-text-muted);
}

.social-links {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(56, 189, 248, 0.1);
    color: var(--color-primary);
    transition: var(--transition-normal);
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.social-link:hover {
    background-color: var(--color-primary);
    color: var(--color-bg);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(56, 189, 248, 0.4);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-title .name {
        font-size: 2.8rem;
    }
    
    .hero-title .greeting {
        font-size: 1.5rem;
    }

    .hero-image {
        width: 300px;
        height: 300px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-image {
        margin-top: var(--space-lg);
    }

    .main-nav {
        position: fixed;
        top: 70px; /* Height of header */
        left: 0;
        width: 100%;
        background-color: var(--color-bg-alt);
        padding: var(--space-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        box-shadow: var(--shadow-md);
    }

    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: var(--space-md);
    }

    .nav-link {
        font-size: 1.2rem;
        padding: var(--space-xs) var(--space-sm);
        display: block;
    }

    /* Update hamburger styles */
    .nav-toggle {
        display: block;
        width: 30px;
        height: 20px;
        position: relative;
        background: none;
        border: none;
        cursor: pointer;
    }

    .hamburger,
    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 2px;
        background-color: var(--color-text);
        transition: var(--transition-normal);
    }

    .hamburger {
        top: 50%;
        transform: translateY(-50%);
    }

    .hamburger::before {
        top: -8px;
    }

    .hamburger::after {
        bottom: -8px;
    }

    /* Hamburger animation */
    .nav-toggle.active .hamburger {
        background-color: transparent;
    }

    .nav-toggle.active .hamburger::before {
        top: 0;
        transform: rotate(45deg);
    }

    .nav-toggle.active .hamburger::after {
        bottom: 0;
        transform: rotate(-45deg);
    }

    /* Update mobile styles */
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons .btn {
        width: 100%;
        height: 48px; /* Maintain consistent height on mobile */
    }

    .hero-title .greeting,
    .hero-subtitle {
        font-size: 1.1rem;
    }

    .about-text p {
        text-align: left;
    }

    .project-description {
        text-align: left;
    }

    .timeline-content p {
        text-align: left;
    }

    .contact-info p {
        text-align: center;
    }
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
    width: 100%;
    margin: 0;
}

.projects-grid + .projects-grid {
    margin-top: var(--space-md);
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    margin: 0;
    background-color: var(--color-bg-alt);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 1px solid var(--color-border);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.project-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.project-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.project-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: var(--space-md);
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    color: var(--color-primary);
}

.project-description {
    flex: 1;
    margin-bottom: var(--space-md);
    color: var(--color-text-muted);
    line-height: 1.8;
}

.project-buttons {
    margin-top: auto;
    display: flex;
    gap: var(--space-sm);
}

.project-buttons .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    white-space: nowrap;
    padding: 0 1.5rem;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid + .projects-grid {
        margin-top: var(--space-md);
    }

    .project-title {
        font-size: 1.3rem;
    }

    .project-description {
        font-size: 0.95rem;
    }
}

/* Update responsive styles */
@media (max-width: 480px) {
    .project-buttons {
        flex-direction: column;
    }
    
    .project-buttons .btn {
        width: 100%;
    }
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-lg);
}

.contact-info {
    padding: var(--space-md);
    background-color: var(--color-bg-alt);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-border);
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: var(--space-sm);
    color: var(--color-primary);
}

.contact-info p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-text);
}

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

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-form label {
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
    display: block;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    background-color: var(--color-bg-alt);
    color: var(--color-text);
    font-family: var(--font-main);
    transition: var(--transition-normal);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 500;
}

/* Responsive adjustments for contact section */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .contact-item {
        justify-content: center;
    }
}