:root {
    --primary: #00d2ff;
    --secondary: #3a7bd5;
    --bg: #0a0c10;
    --bg-alt: #12161d;
    --text: #e0e0e0;
    --text-dim: #a0a0a0;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.section {
    padding: 100px 0;
}

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

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

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 12, 16, 0.8);
    backdrop-filter: blur(15px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
}

.logo span {
    color: var(--primary);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 10% 20%, rgba(0, 210, 255, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(58, 123, 213, 0.05) 0%, transparent 40%);
}

.hero-content h4 {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-content h1 span {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content h2 {
    font-size: 2rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
}

.hero-content p {
    max-width: 600px;
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.btn.primary {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 10px 20px rgba(0, 210, 255, 0.2);
}

.btn.secondary {
    border: 1px solid var(--glass-border);
    color: white;
    margin-left: 1rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 210, 255, 0.3);
}

/* Education & Experience Timeline */
.timeline {
    border-left: 2px solid var(--glass-border);
    padding-left: 2rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-2rem - 7px);
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
}

.timeline-item .date {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

.timeline-item .grade {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 2px 10px;
    background: var(--glass);
    border-radius: 4px;
    font-size: 0.8rem;
}

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

.project-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 15px;
    transition: var(--transition);
}

.project-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-10px);
    border-color: var(--primary);
}

.tags {
    margin-top: 1.5rem;
}

.tags span {
    font-size: 0.75rem;
    padding: 5px 12px;
    background: rgba(0, 210, 255, 0.1);
    color: var(--primary);
    border-radius: 20px;
    margin-right: 5px;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.info-item {
    margin-bottom: 2rem;
}

.info-item span {
    display: block;
    color: var(--primary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-item p {
    font-size: 1.2rem;
    font-weight: 600;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: white;
    border-radius: 8px;
    outline: none;
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--primary);
}

/* Scroll Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s all ease-out;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 3rem; }
    .contact-grid, .dual-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
}
/* Hero Layout Adjustment */
.hero-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    width: 100%;
}

.hero-content {
    flex: 1;
}

/* Image Container */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.img-frame {
    position: relative;
    width: 320px;
    height: 400px;
    z-index: 1;
    animation: float 6s ease-in-out infinite; /* Floating Animation */
}

.img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 2;
}

/* Background Decorative Blob/Glow */
.blob-shape {
    position: absolute;
    top: -20px;
    right: -20px;
    bottom: -20px;
    left: -20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    filter: blur(40px);
    opacity: 0.3;
    border-radius: 50%;
    z-index: 0;
    animation: pulse 4s ease-in-out infinite alternate;
}

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

/* Pulsing Glow Animation */
@keyframes pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.2;
    }
    100% {
        transform: scale(1.1);
        opacity: 0.4;
    }
}

/* Mobile Responsiveness for Image */
@media (max-width: 992px) {
    .hero-main {
        flex-direction: column-reverse; /* Text on bottom, image on top for mobile */
        text-align: center;
        margin-top: 100px;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .img-frame {
        width: 260px;
        height: 320px;
    }

    .hero-content p {
        margin: 0 auto 2.5rem;
    }

    .hero-btns {
        justify-content: center;
    }
}
/* About Grid Layout */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: center;
}

/* Highlight Text */
.highlight-text {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #fff;
}

.highlight-text span {
    color: var(--primary);
}

/* Focus Areas List */
.focus-areas {
    margin-top: 2.5rem;
}

.focus-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    transition: var(--transition);
}

.focus-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(10px);
}

.focus-item .icon {
    font-size: 1.8rem;
}

.focus-item h4 {
    color: var(--primary);
    margin-bottom: 0.3rem;
}

/* Skill Cards Grid */
.skills-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.skill-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 2rem 1rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
}

.skill-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.15);
}

.skill-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

/* Specific Entrance Animations */
.reveal-left {
    transform: translateX(-50px);
    opacity: 0;
}

.reveal-right {
    transform: translateX(50px);
    opacity: 0;
}

.scroll-reveal.active {
    transform: translate(0);
    opacity: 1;
}

/* Responsive Mobile */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .skills-container {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}
/* Section */
.section {
  padding: 100px 0;
}

/* Title */
.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 60px;
}

/* Grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

/* Card Base */
.project-card {
  position: relative;
  background: #0e0e0e;
  border-radius: 20px;
  padding: 30px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

/* Glow Layer */
.project-glow {
  position: absolute;
  inset: -2px;
  background: linear-gradient(120deg, cyan, purple, blue);
  opacity: 0;
  filter: blur(20px);
  transition: opacity 0.4s ease;
  z-index: 0;
}

/* Content */
.project-content {
  position: relative;
  z-index: 1;
}

/* Hover Effects */
.project-card:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 30px 60px rgba(0, 255, 255, 0.25);
}

.project-card:hover .project-glow {
  opacity: 0.6;
}

/* Tags */
.tags {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.tags span {
  padding: 6px 14px;
  background: rgba(255,255,255,0.08);
  border-radius: 20px;
  font-size: 0.85rem;
  transition: transform 0.3s ease, background 0.3s ease;
}

.project-card:hover .tags span {
  transform: translateY(-4px);
  background: rgba(0,255,255,0.2);
}

/* Scroll Reveal Animation */
.scroll-reveal {
  opacity: 0;
  transform: translateY(60px) scale(0.95);
  transition: all 0.9s ease;
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}
