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

:root {
    --primary-color: #00bcd4; /* Electric Blue */
    --secondary-color: #3f51b5; /* Deep Indigo */
    --text-color: #e0e0e0; /* Light Gray */
    --bg-color: #1c1c2c; /* Dark Blue-Gray */
    --glass-bg: rgba(44, 44, 74, 0.6); /* Darker transparent background */
    --glass-border: rgba(0, 188, 212, 0.3); /* Electric blue transparent border */
}

html {
    scroll-behavior: smooth;
    /* Establish a global 3D rendering context */
    transform-style: preserve-3d;
    perspective: 1000px;
    height: 100%; /* Ensure html takes full viewport height */
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Ensure body participates in 3D context */
    transform-style: preserve-3d;
}

/* Custom Cursor */
.cursor {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease, background-color 0.3s ease;
    animation: cursor-pulse 1.5s infinite alternate;
}

.cursor-follower {
    width: 25px;
    height: 25px;
    background: rgba(0, 188, 212, 0.2); /* Adjusted to primary color with transparency */
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.4s ease, width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
}

/* New Keyframes for Cursor */
@keyframes cursor-pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.2); }
}

/* New Keyframes for Name */
@keyframes name-float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

.cursor.grow {
    transform: scale(2.5);
    background-color: var(--secondary-color); /* Use secondary for grow */
}

.cursor-follower.grow {
    width: 40px;
    height: 40px;
    background-color: rgba(63, 81, 181, 0.2); /* Adjusted to secondary color with transparency */
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(28, 28, 44, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: glowText 4s ease-in-out infinite;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    position: relative; /* Needed for 3D transform */
    transform-style: preserve-3d;
    transition: color 0.3s ease, transform 0.3s ease;
    will-change: transform;
}

.nav-links a:hover {
    color: var(--primary-color);
    transform: translateZ(10px);
    animation: glowText 1s ease-in-out infinite;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bg-color);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 188, 212, 0.1) 0%, transparent 70%);
}

.hero-content {
    z-index: 1;
    position: relative;
}

.glitch {
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    text-shadow: 0.05em 0 0 rgba(0, 188, 212, 0.75),
                -0.025em -0.05em 0 rgba(63, 81, 181, 0.75),
                0.025em 0.05em 0 rgba(255, 0, 255, 0.75); /* Futuristic glitch colors */
    animation: glitch 500ms infinite;
}

@keyframes glitch {
    0% { text-shadow: 0.05em 0 0 rgba(0, 188, 212, 0.75),
                    -0.025em -0.05em 0 rgba(63, 81, 181, 0.75),
                    0.025em 0.05em 0 rgba(255, 0, 255, 0.75); }
    14% { text-shadow: 0.05em 0 0 rgba(0, 188, 212, 0.75),
                    -0.025em -0.05em 0 rgba(63, 81, 181, 0.75),
                    0.025em 0.05em 0 rgba(255, 0, 255, 0.75); }
    15% { text-shadow: -0.05em -0.025em 0 rgba(0, 188, 212, 0.75),
                    0.025em 0.025em 0 rgba(63, 81, 181, 0.75),
                    -0.05em -0.05em 0 rgba(255, 0, 255, 0.75); }
    49% { text-shadow: -0.05em -0.025em 0 rgba(0, 188, 212, 0.75),
                    0.025em 0.025em 0 rgba(63, 81, 181, 0.75),
                    -0.05em -0.05em 0 rgba(255, 0, 255, 0.75); }
    50% { text-shadow: 0.025em 0.05em 0 rgba(0, 188, 212, 0.75),
                    0.05em 0 0 rgba(63, 81, 181, 0.75),
                    0 -0.05em 0 rgba(255, 0, 255, 0.75); }
    99% { text-shadow: 0.025em 0.05em 0 rgba(0, 188, 212, 0.75),
                    0.05em 0 0 rgba(63, 81, 181, 0.75),
                    0 -0.05em 0 rgba(255, 0, 255, 0.75); }
    100% { text-shadow: -0.025em 0 0 rgba(0, 188, 212, 0.75),
                    -0.025em -0.025em 0 rgba(63, 81, 181, 0.75),
                    -0.025em -0.05em 0 rgba(255, 0, 255, 0.75); }
}

.name {
    font-size: 4rem;
    font-weight: 700;
    margin: 1rem 0;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)); /* Use new colors */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    will-change: transform; /* Performance hint */
    animation: name-float 3s ease-in-out infinite; /* Apply the new float animation */
}

.title {
    font-size: 1.5rem;
    color: var(--text-color); /* Changed to light text color */
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem; /* Reduced padding to make buttons smaller */
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    margin: 0 0.5rem;
    /* 3D Properties */
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform; /* Performance hint */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn.primary {
    background: var(--primary-color);
    color: var(--bg-color); /* Text color from dark background */
}

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

.btn:hover {
    transform: perspective(1000px) translateZ(10px); /* 3D transform */
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.3); /* More pronounced Electric Blue shadow on hover */
    animation: glow 1s ease-in-out infinite;
}

/* Sections */
section {
    padding: 5rem 0;
    position: relative;
}

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

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    transform-style: preserve-3d; /* For parallax effect */
    perspective: 1000px; /* For parallax effect */
    will-change: transform; /* Performance hint */
    color: var(--primary-color); /* Changed to primary color */
    opacity: 1 !important;
    transform: none !important;
    animation: glowText 5s ease-in-out infinite;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* Enhanced shadow */
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--glass-border);
    /* 3D Properties */
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.5s ease, box-shadow 0.3s ease;
    will-change: transform; /* Performance hint */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.skill-card:hover {
    transform: perspective(1000px) rotateY(15deg) rotateX(15deg); /* More pronounced 3D transform */
    box-shadow: 0 15px 30px rgba(0, 188, 212, 0.3); /* Even more pronounced Electric Blue shadow */
    animation: glow 2s ease-in-out infinite;
}

.skill-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: transform 0.5s ease;
    will-change: transform;
}

.skill-card:hover i {
    animation: glowText 1s ease-in-out infinite;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.project-card {
    position: relative;
    overflow: hidden; /* Added back for clean corners with image scale */
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    /* 3D Properties */
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.5s ease, box-shadow 0.3s ease; /* Combined transitions */
    will-change: transform; /* Performance hint */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    
    /* Flexbox for consistent height and button alignment */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes buttons to the bottom */
}

.project-card:hover {
    transform: perspective(1000px) rotateY(8deg) rotateX(8deg); /* More pronounced 3D transform */
    box-shadow: 0 15px 30px rgba(0, 188, 212, 0.3); /* Even more pronounced Electric Blue shadow */
    animation: glow 2s ease-in-out infinite;
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    /* 3D Properties */
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
    will-change: transform;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Darker overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1rem;
}

.project-tech span {
    background: var(--primary-color);
    color: var(--bg-color); /* Text color from dark background */
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: transform 0.2s ease; /* Added transition for hover effect */
}

.project-tech span:hover {
    transform: translateY(-3px); /* Subtle lift on hover */
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-info {
    padding: 1.5rem;
    /* 3D Properties */
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
    will-change: transform;
    flex-grow: 1; /* Allows project info to take available space */
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem; /* Adjusted margin */
    font-size: 1.6rem; /* Slightly larger font */
}

.project-info p {
    font-size: 0.95rem; /* Slightly larger font for description */
    margin-bottom: 1rem; /* Adjusted margin */
    color: var(--text-color); /* Changed to light text color */
}

.project-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem; /* Adjusted margin */
    flex-grow: 1; /* Allows features list to take available space */
}

.project-features li {
    position: relative;
    padding-left: 1.75rem; /* Adjusted padding */
    margin-bottom: 0.75rem; /* Adjusted margin */
    font-size: 0.9rem;
    color: var(--text-color); /* Changed to light text color */
}

.project-features li::before {
    content: '\2713'; /* Checkmark icon */
    color: var(--primary-color); /* Use primary color for checkmark */
    position: absolute;
    left: 0;
    font-size: 1.1rem;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: auto; /* Push links to the bottom */
    justify-content: center; /* Center buttons */
}

/* Disable 3D hover animation for project section buttons */
.project-links .btn {
    transform: none !important;
    transition: none !important;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.form-success-message {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2.5rem;
    border: 1px solid var(--glass-border);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.form-success-message h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.form-success-message p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.form-success-message .go-back-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.form-success-message .go-back-link:hover {
    color: var(--secondary-color);
}

.form-success-message.hidden {
    display: none;
}

.contact-info {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2.5rem; /* Increased padding */
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* Enhanced subtle shadow */
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem; /* Increased margin */
    font-size: 1.1rem; /* Slightly larger text */
    color: var(--text-color);
}

.contact-item i {
    font-size: 1.8rem; /* Larger icons */
    color: var(--primary-color);
    margin-right: 1rem;
    transition: transform 0.3s ease; /* Smooth transition for icon hover */
}

.contact-item:hover i {
    transform: scale(1.1); /* Subtle grow on icon hover */
}

.contact-form {
    display: grid;
    gap: 1.5rem; /* Increased gap */
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2.5rem; /* Increased padding */
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* Enhanced subtle shadow */
}

.contact-form.hidden {
    display: none;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem 1.2rem; /* Adjusted padding */
    border: 1px solid var(--glass-border); /* Use new glass border */
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05); /* More transparent background */
    backdrop-filter: blur(5px); /* Slightly less blur */
    color: var(--text-color); /* Ensure text is readable */
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for focus */
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(224, 224, 224, 0.7); /* Lighter placeholder text for dark theme */
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color); /* Highlight border on focus */
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.2); /* Subtle glow with primary color */
    background: rgba(28, 28, 44, 0.7); /* Slightly less transparent on focus */
    animation: glowBorder 2s ease-in-out infinite;
}

.contact-form textarea {
    height: 180px; /* Increased height */
    resize: vertical;
}

.contact-form .btn {
    width: 100%; /* Full width button */
    padding: 1.2rem 2rem; /* Larger button */
    font-size: 1.1rem;
    margin: 0; /* Remove side margins for full width */
    background: var(--primary-color);
    color: var(--bg-color); /* Text color from dark background */
    border: none; /* No border for primary button */
    box-shadow: 0 5px 15px rgba(0, 188, 212, 0.15); /* Electric Blue shadow */
    transition: all 0.3s ease;
}

.contact-form .btn:hover {
    transform: translateY(-3px) scale(1.01); /* Lift and subtle scale on hover */
    box-shadow: 0 8px 20px rgba(0, 188, 212, 0.25); /* More pronounced electric blue shadow on hover */
}

/* Footer */
.footer {
    background: var(--bg-color); /* Changed to dark background color */
    color: var(--text-color);
    padding: 2rem 0;
    text-align: center;
}

.social-links {
    margin-bottom: 1rem;
}

.social-links a {
    color: var(--text-color); /* Changed to light text color */
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: color 0.3s ease;
    position: relative; /* Needed for 3D transform */
    transform-style: preserve-3d;
    will-change: transform;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: perspective(1000px) translateZ(15px) scale(1.2);
    animation: glowText 1s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .logo-img {
        height: 32px; /* Slightly smaller on mobile */
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .name {
        font-size: 3rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-image {
        height: 200px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); } /* Keep this as a base fade in */
    to { opacity: 1; transform: translateY(0); }
}

/* Experience Section */
.experience {
    background: var(--bg-color); /* Use new background color */
    position: relative;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    padding: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    position: relative;
    /* 3D Properties */
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.5s ease, box-shadow 0.3s ease;
    will-change: transform;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-content:hover {
    transform: perspective(1000px) rotateY(8deg) translateZ(30px); /* More pronounced 3D transform */
    box-shadow: 0 15px 30px rgba(0, 188, 212, 0.3); /* Even more pronounced Electric Blue shadow */
    animation: glow 2s ease-in-out infinite;
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: var(--text-color); /* Changed to light text color */
    margin-bottom: 0.5rem;
}

.timeline-content .date {
    color: var(--text-color); /* Changed to light text color */
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.timeline-content ul {
    list-style-type: none;
    padding-left: 0;
}

.timeline-content ul li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-color); /* Changed to light text color */
}

.timeline-content ul li::before {
    content: '•';
    color: var(--primary-color); /* Use primary color for bullet */
    position: absolute;
    left: 0;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 20px;
    z-index: 1;
}

.timeline-item:nth-child(odd)::after {
    right: -10px;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

/* Animation Keyframes */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes glow {
    0% { 
        box-shadow: 0 0 5px rgba(0, 188, 212, 0.5);
        text-shadow: 0 0 5px rgba(0, 188, 212, 0.5);
    }
    50% { 
        box-shadow: 0 0 20px rgba(0, 188, 212, 0.8), 0 0 30px rgba(0, 188, 212, 0.6);
        text-shadow: 0 0 10px rgba(0, 188, 212, 0.8);
    }
    100% { 
        box-shadow: 0 0 5px rgba(0, 188, 212, 0.5);
        text-shadow: 0 0 5px rgba(0, 188, 212, 0.5);
    }
}

@keyframes glowText {
    0% { text-shadow: 0 0 5px rgba(0, 188, 212, 0.5); }
    50% { text-shadow: 0 0 15px rgba(0, 188, 212, 0.8), 0 0 25px rgba(0, 188, 212, 0.6); }
    100% { text-shadow: 0 0 5px rgba(0, 188, 212, 0.5); }
}

@keyframes glowBorder {
    0% { border-color: rgba(0, 188, 212, 0.3); }
    50% { border-color: rgba(0, 188, 212, 0.8); }
    100% { border-color: rgba(0, 188, 212, 0.3); }
}

/* Animated Sections */
section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Interactive Project Cards */
.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 188, 212, 0.2);
}

.project-image {
    overflow: hidden;
}

.project-image img {
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

/* Animated Skill Bars */
.skill-card {
    position: relative;
    overflow: hidden;
}

.skill-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 1s ease-in-out;
}

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

/* Animated Stats */
.stat-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-out;
}

.stat-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-item h3 {
    position: relative;
    display: inline-block;
}

.stat-item h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.5s ease-out;
}

.stat-item:hover h3::after {
    width: 100%;
}

/* Parallax Effect */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0, 188, 212, 0.1) 0%, transparent 70%);
    transform: translateZ(-1px) scale(2);
    z-index: -1;
}

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

/* Animated Navigation Links */
.nav-links a {
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

/* Animated Contact Form */
.contact-form input,
.contact-form textarea {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 188, 212, 0.2);
}

/* Animated Social Links */
.social-links a {
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px) scale(1.1);
    color: var(--primary-color);
}

main {
    flex-grow: 1; /* Allows main content to expand and push footer down */
}

/* Visually hidden utility for accessibility */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 768px) {
    .timeline {
        padding: 0;
    }
    .timeline::after {
        left: 20px;
        margin-left: 0;
}
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
        left: 0 !important;
        margin-bottom: 2rem;
}
    .timeline-item::after {
        left: 10px !important;
        right: auto !important;
}
} 

/* Enhanced Interactive Elements */
.hero-content h1 {
    animation: float 6s ease-in-out infinite;
}

.hero-content h2 {
    animation: glowText 3s ease-in-out infinite;
}

.skill-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-card:hover {
    transform: translateY(-10px) scale(1.05);
    animation: glow 2s infinite;
}

.skill-card i {
    transition: all 0.3s ease;
}

.skill-card:hover i {
    animation: glowText 1s ease-in-out infinite;
    color: var(--accent-color);
}

.project-card {
    transition: all 0.4s ease;
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.nav-links a {
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

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

.contact-form input,
.contact-form textarea {
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(1px);
}

.social-links a {
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.2);
    color: var(--accent-color);
    }

.timeline-item {
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-item {
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.1);
    animation: bounce 1s ease infinite;
}

/* Enhanced Glow Effects */
.hero-content h2 {
    animation: glowText 3s ease-in-out infinite;
}

.skill-card:hover {
    animation: glow 2s ease-in-out infinite;
}

.skill-card:hover i {
    animation: glowText 1s ease-in-out infinite;
}

.project-card:hover {
    animation: glow 2s ease-in-out infinite;
}

.nav-links a:hover {
    animation: glowText 1s ease-in-out infinite;
}

.btn:hover {
    animation: glow 1s ease-in-out infinite;
}

.social-links a:hover {
    animation: glowText 1s ease-in-out infinite;
}

.timeline-content:hover {
    animation: glow 2s ease-in-out infinite;
}

.stat-item:hover h3 {
    animation: glowText 1s ease-in-out infinite;
}

.contact-form input:focus,
.contact-form textarea:focus {
    animation: glowBorder 2s ease-in-out infinite;
}

.logo {
    animation: glowText 4s ease-in-out infinite;
}

.section-title {
    animation: glowText 5s ease-in-out infinite;
}

/* Hobbies & Photography Section */
.hobbies {
    background: var(--bg-color);
    position: relative;
}

.hobbies-intro {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hobbies-intro p {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.8;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 12px;
    background: var(--glass-bg, #222);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.gallery-item:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 32px rgba(0,188,212,0.18);
}

.gallery-item:hover img {
    transform: scale(1.07);
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-item {
        aspect-ratio: 4/3;
    }
}

.hobbies .gallery-grid {
    max-width: 100vw;
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
    padding-left: 2vw;
    padding-right: 2vw;
} 