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

:root {
    --primary-color: #00a8ff;
    --secondary-color: #00ffc3;
    --background-color: #0a192f;
    --text-color: #ccd6f6;
    --card-bg-color: #112240;
    --shadow-color: rgba(0, 0, 0, 0.7);
    --font-family: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

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

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 2px 10px var(--shadow-color);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}

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

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

nav ul li a:hover::after {
    width: 100%;
}

/* --- HERO SECTION --- */
#hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: var(--background-color); 
    color: #fff;
    overflow: hidden;
}

/* Canvas Styling */
#cyber-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: transparent;
}

.hero-content {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

/* Typography */
.hero-content h1 {
    font-size: 5rem;
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 700;
    pointer-events: auto;
    text-shadow: 0 0 20px rgba(0, 168, 255, 0.5);
}

.hero-content p {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--secondary-color);
    pointer-events: auto;
    background: rgba(17, 34, 64, 0.8);
    padding: 10px 25px;
    border-radius: 50px;
    border: 1px solid rgba(0, 168, 255, 0.2);
}

/* Sections */
section {
    padding: 6rem 0;
}

section:nth-child(even) {
    background-color: #0f213d;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    color: #fff;
}

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

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

.about-text p {
    margin-bottom: 1.5rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px var(--shadow-color);
    border: 2px solid var(--primary-color);
}

/* --- PROJECTS SECTION (MATCHING AKANKSHA'S SPECS) --- */
.project-grid {
    display: grid;
    /* Use auto-fill instead of auto-fit to match Akanksha's layout behavior */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    /* Gap changed from 2rem to 20px to match Akanksha's tighter spacing */
    gap: 20px;
}

.project-card {
    background: var(--card-bg-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-color);
    border-color: var(--primary-color);
}

/* Fixed Image Height - Same as Akanksha */
.project-card img {
    width: 100%;
    height: 200px; 
    object-fit: cover; 
    object-position: top;
    display: block;
    opacity: 0.9;
    border-bottom: 1px solid rgba(0, 168, 255, 0.1);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

/* --- SKILLS SECTION (SYMMETRICAL) --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
    margin: 0 auto;
    max-width: 1200px;
}

.skill-item {
    padding: 2rem;
    background: var(--card-bg-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease;
}

.skill-item:hover {
    transform: scale(1.1);
    color: var(--primary-color);
}

.skill-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.skill-item:hover i {
    color: var(--secondary-color);
}


/* Contact Section */
#contact p {
    text-align: center;
    margin-bottom: 3rem; 
    color: var(--text-color);
}

.contact-form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #4f5b7a;
    border-radius: 5px;
    font-family: var(--font-family);
    background: #112240;
    color: var(--text-color);
}

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

/* Button */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: transparent;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s ease, color 0.3s ease;
    border: 2px solid var(--primary-color);
    cursor: pointer;
}

.btn:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Footer */
footer {
    background: #0f213d;
    color: #fff;
    text-align: center;
    padding: 3rem 0;
}

.social-links a {
    color: #fff;
    font-size: 1.5rem;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

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

footer p {
    margin-top: 1rem;
}

/* Animations */
.animate__animated {
    opacity: 0;
}

.animate__fadeIn, .animate__fadeInDown, .animate__fadeInUp, .animate__fadeInLeft, .animate__fadeInRight, .animate__zoomIn {
    opacity: 1;
}


/* Responsive Layout Adjustments */
@media (max-width: 900px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 2rem;
    }
}

@media (max-width: 600px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    nav ul {
        display: none;
    }
}
