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

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ========= Hero Fog Animation ========= */
.fogwrapper {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  filter: blur(1px) grayscale(0.2) saturate(1.2) sepia(0.2);
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
          mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

/* Common fog layer styling */
#foglayer_01, #foglayer_02, #foglayer_03 {
  position: absolute;
  top: 0; left: 0;
  width: 200%; height: 100%;
}

/* Each layer has two halves—image01 and image02—so that when one scrolls out, the next appears */
.fog .image01, .fog .image02 {
  float: left;
  width: 50%; height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Layer 1: faster drift, lighter fog */
#foglayer_01 .image01,
#foglayer_01 .image02 {
  background-image: url("../images/fog1.png");
}
#foglayer_01 {
  animation: foglayer_01_opacity 20s linear infinite,
             foglayer_moveme 40s linear infinite;
}

/* Layer 2: medium drift, medium fog */
#foglayer_02 .image01,
#foglayer_02 .image02 {
  background-image: url("../images/fog2.png");
}
#foglayer_02 {
  animation: foglayer_02_opacity 30s linear infinite,
             foglayer_moveme 50s linear infinite;
}

/* Layer 3: slow drift, denser fog */
#foglayer_03 .image01,
#foglayer_03 .image02 {
  background-image: url("../images/fog2.png");
}
#foglayer_03 {
  animation: foglayer_03_opacity 45s linear infinite,
             foglayer_moveme 60s linear infinite;
}

/* Opacity keyframes for each layer */
@keyframes foglayer_01_opacity {
  0%   { opacity: 0.05; }
  25%  { opacity: 0.2; }
  50%  { opacity: 0.1; }
  75%  { opacity: 0.25; }
  100% { opacity: 0.05; }
}
@keyframes foglayer_02_opacity {
  0%   { opacity: 0.15; }
  25%  { opacity: 0.05; }
  50%  { opacity: 0.25; }
  75%  { opacity: 0.1; }
  100% { opacity: 0.15; }
}
@keyframes foglayer_03_opacity {
  0%   { opacity: 0.25; }
  25%  { opacity: 0.1; }
  50%  { opacity: 0.3; }
  75%  { opacity: 0.15; }
  100% { opacity: 0.25; }
}

/* Horizontal drifting for all layers */
@keyframes foglayer_moveme {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* .gradient-bg {
    position: relative;
    background: linear-gradient(180deg, #0d0d1a 0%, #000 100%);
    overflow: hidden;
}

.gradient-bg::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1200px;
    height: 1200px;
    transform: translate(-50%, -50%);
    background: repeating-conic-gradient(
        from 0deg,
        rgba(102,126,234,0.2) 0deg 2deg,
        transparent 2deg 15deg
    );
    border-radius: 50%;
    filter: blur(1px);
    opacity: 1;
    animation: rotateRays 40s linear infinite;
    z-index: 0;
}

.gradient-bg::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1000px;
    height: 1000px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(102,126,234,0.12), transparent 70%);
    filter: blur(100px);
    z-index: -1;
}

@keyframes rotateRays {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
} */

/* #rays-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
} */

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
}

.neon-glow {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
    transition: all 0.3s ease;
}

.neon-glow:hover {
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.8);
    transform: translateY(-5px);
}

.floating-animation {
    animation: float 6s ease-in-out infinite;
}

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

.pulse-animation {
    animation: pulse 2s infinite;
}

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

.typing-animation {
    border-right: 2px solid #667eea;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { border-color: transparent; }
    51%, 100% { border-color: #667eea; }
}

.parallax-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 6rem 2rem;
    color: #fff;
    text-align: center;
    background: transparent; /* since .gradient-bg handles background */
}


.hero-content {
    text-align: center;
    z-index: 10;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #b0b0b0;
    animation: slideInUp 1s ease-out 0.2s both;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: #d0d0d0;
    animation: slideInUp 1s ease-out 0.4s both;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideInUp 1s ease-out 0.6s both;
}

.cta-button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.cta-secondary {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.cta-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-3px);
}

/* Main Page: Education Section */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Education Card Styling */
.education-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 1.5rem 1.8rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.education-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(102, 126, 234, 0.4);
}

/* Header Row (Date + Score) */
.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  color: #b0b0b0;
}

.edu-score {
  color: #667eea;
  font-weight: 700;
  background: rgba(102, 126, 234, 0.15);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.9rem;
}

/* Institution Block */
.edu-institution {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  background: rgba(102,126,234,0.15);
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  transition: background 0.3s ease, color 0.3s ease;
}

.edu-institution:hover {
  background: rgba(102,126,234,0.3);
  color: #fff;
}

.edu-institution img.edu-icon {
  width: 20px;
  height: 20px;
}

/* Degree */
.edu-degree {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  padding-left: 0.8rem;
  position: relative;
}

.edu-degree::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #667eea, #764ba2);
  border-radius: 2px;
}

/* Equivalence */
.edu-equivalence {
  font-size: 0.85rem;
  color: #aaa;
  font-style: italic;
  margin-top: -0.2rem;
}

/* Details (Bullet Points) */
.edu-details {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
}

.edu-details li {
  font-size: 0.95rem;
  color: #d0d0d0;
  margin-bottom: 0.4rem;
  position: relative;
  padding-left: 1rem;
}

.edu-details li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #667eea;
  font-weight: bold;
}

.section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.project-card:hover::before {
    left: 100%;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #667eea;
}

.project-description {
    color: #b0b0b0;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}
/* 
.project-description::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
} */

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.tech-tag {
    display: inline-block;
    white-space: nowrap;
    padding: 0.3rem 0.8rem;
    background: rgba(102,126,234,0.15);
    color: #fff;
    border-radius: 6px;
    text-align: center;
    border: 1px solid rgba(102,126,234,0.5);
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.1),
        0 0 0 1px rgba(102,126,234,0.2),
        inset 0 1px 0 rgba(255,255,255,0.15);
    
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tech-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255,255,255,0.3), 
        transparent
    );
    opacity: 1;
    transition: opacity 0.3s ease;
}

.tech-tag:hover {
    background: rgba(102,126,234,0.3);
    border-color: rgba(102,126,234,0.7);
    box-shadow: 
        0 2px 6px rgba(102,126,234,0.2),
        0 0 0 1px rgba(102,126,234,0.4),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

.tech-tag:hover::before {
    opacity: 0.8;
}

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

.project-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: #764ba2;
    transform: translateX(5px);
}

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

.skill-category {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-category:hover {
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    transform: translateY(-6px);
}

.skill-category h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-item {
    background: rgba(102, 126, 234, 0.12);
    font-weight: 500;
    color: #d0d0d0;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.more-skills {
    background: rgba(255, 255, 255, 0.08);
    color: #aaa;
    font-style: italic;
    cursor: pointer;
    transition: background 0.3s ease;
}

.more-skills:hover {
    background: rgba(255, 255, 255, 0.15);
}

.highlight-pulse {
    animation: pulseHighlight 1.5s ease-in-out 3;
}
@keyframes pulseHighlight {
    0% {
        box-shadow: 0 0 15px rgba(102, 126, 234, 0.7), 0 0 30px rgba(102, 126, 234, 0.4);
        background-color: rgba(102, 126, 234, 0.2);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 40px rgba(102, 126, 234, 1), 0 0 70px rgba(102, 126, 234, 0.8);
        background-color: rgba(102, 126, 234, 0.45);
        transform: scale(1.12);
    }
    100% {
        box-shadow: 0 0 15px rgba(102, 126, 234, 0.7), 0 0 30px rgba(102, 126, 234, 0.4);
        background-color: rgba(102, 126, 234, 0.2);
        transform: scale(1);
    }
}

/* Contact Page */
.contact-section {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 30px;
    padding: 3rem;
    text-align: center;
    margin-top: 5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 1);
    padding: 0.6rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    font-weight: 500;
}
.social-link img {
    width: 22px;
    height: 22px;
}

.social-link:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    transform: translateX(6px);
    box-shadow: 0 4px 15px rgba(102,126,234,0.4);
}

.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.shape {
    position: absolute;
    opacity: 0.1;
    animation: floatShapes 20s infinite linear;
}

@keyframes floatShapes {
    0% { transform: translateY(100vh) rotate(0deg); }
    100% { transform: translateY(-100vh) rotate(360deg); }
}

/* Navbar styling */
.nav-bar {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 1rem 2rem;
    display: flex;
    gap: 2rem;
    z-index: 1000;
}

.nav-link {
    color: #d0d0d0;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 2px;
    background: #667eea;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #667eea;
}

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

/* Responsive Navbar */
.nav-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    z-index: 1001;
}

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

/* Experience Section */
.experience-timeline {
    position: relative;
    margin-top: 3rem;
}

.timeline-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.timeline-date {
    color: #667eea;
    font-weight: 600;
    font-size: 0.9rem;
}

.timeline-title {
    font-size: 1.3rem;
    margin: 0.5rem 0;
    color: #ffffff;
}

.timeline-company {
    color: #b0b0b0;
    margin-bottom: 1rem;
}

.timeline-description {
    color: #d0d0d0;
    line-height: 1.6;
}

/* Page-specific styles */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 8rem 2rem 3rem;
    text-align: center;
    margin-top: 5rem;
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}

.page-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #764ba2;
    transform: translateX(-5px);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #d0d0d0;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

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

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section {
        padding: 3rem 1rem;
    }
    
    .nav-bar {
        justify-content: flex-start;
        padding: 0.5rem 1rem;
        position: fixed;
        top: 1rem;
        left: 1rem;
        border-radius: 0;
        transform: none;
        border: none;
        background: transparent;
        display: flex;
        flex-direction: column;
        gap: 0;
        transition: background 0.3s ease, box-shadow 0.3s ease;
        z-index: 1001;
    }

    .nav-bar.open {
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    }

    .nav-toggle {
        display: block;
        position: relative;
        z-index: 1002;
    }

    .nav-links {
        position: fixed;
        top: 4rem;
        left: -220px;
        width: 200px;
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem 1rem;
        transition: left 0.3s ease-in-out;
        z-index: 1000;
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    }

    .nav-links.open {
        left: 0;
    }

    .nav-link {
        font-size: 1.2rem;
        color: #fff;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .social-links {
        flex-wrap: wrap;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .page-header {
        padding: 6rem 1rem 2rem;
    }
    
    .nav-bar {
        width: 90%;
        padding: 0.8rem;
        border-radius: 12px;
    }

    .nav-toggle {
        font-size: 1.5rem;
    }

    .nav-links {
        gap: 0.8rem;
    }

    .nav-link {
        font-size: 1rem;
        padding: 0.5rem 0;
    }
    
    .hero-section {
        padding-top: 2rem;
    }
}

/* About Me Section */
.about-section {
    display: flex;
    justify-content: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    margin: 3rem auto;
}

.about-container {
    display: flex;
    align-items: center;
    max-width: 1100px;
    gap: 2rem;
    flex-wrap: wrap;
}

.about-text {
    flex: 1 1 55%;
    color: #fff;
}

.about-text p {
    margin: 1rem 0;
    line-height: 1.6;
    font-size: 1.1rem;
}

.about-image {
    position: relative;
    width: 250px;
    height: 250px;
}

.about-image img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    border: 3px solid #667eea;
}

.image-fallback {
    display: none;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.15);
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    border: 3px solid #667eea;
}

/* Sub-Pages Hero Section */
.page-hero {
    position: relative;
    height: 350px;
    display: flex;
    padding-top: 100px;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #d0d0d0;
}

.fog-compact .fogwrapper {
  -webkit-mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

/* Layer 1: faster drift, lighter fog */
#foglayer_01 {
  animation: foglayer_01_opacity_compact 20s linear infinite,
             foglayer_moveme 40s linear infinite;
}

/* Layer 2: medium drift, medium fog */
#foglayer_02 {
  animation: foglayer_02_opacity_compact 30s linear infinite,
             foglayer_moveme 50s linear infinite;
}

/* Layer 3: slow drift, denser fog */
#foglayer_03 {
  animation: foglayer_03_opacity_compact 45s linear infinite,
             foglayer_moveme 60s linear infinite;
}

/* Opacity keyframes for each layer */
@keyframes foglayer_01_opacity_compact {
  0%   { opacity: 0.15; }
  25%  { opacity: 0.3; }
  50%  { opacity: 0.2; }
  75%  { opacity: 0.35; }
  100% { opacity: 0.15; }
}
@keyframes foglayer_02_opacity_compact {
  0%   { opacity: 0.25; }
  25%  { opacity: 0.15; }
  50%  { opacity: 0.35; }
  75%  { opacity: 0.2; }
  100% { opacity: 0.25; }
}
@keyframes foglayer_03_opacity_compact {
  0%   { opacity: 0.35; }
  25%  { opacity: 0.2; }
  50%  { opacity: 0.4; }
  75%  { opacity: 0.25; }
  100% { opacity: 0.35; }
}

.contact-section {
    margin-top: 2rem;
}

/* Responsive Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* Contact Card (glass style like experience/projects) */
.contact-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 28px rgba(102,126,234,0.4);
}

.contact-card h2 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* Contact Info Links */
.contact-card p a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-card p a:hover {
    color: #667eea;
}

/* Social Links Section */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.2rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.social-icon img {
    width: 22px;
    height: 22px;
    filter: invert(100%);
}

.social-icon:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    transform: scale(1.15);
    box-shadow: 0 0 15px #667eea;
}

/* Contact Form */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: background 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    background: rgba(255, 255, 255, 0.15);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #bbb;
}

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

/* Submit Button */
.submit-btn {
    background: #667eea;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
}

.submit-btn:hover {
    background: #5563d6;
    box-shadow: 0 4px 12px rgba(102,126,234,0.5);
}

/* Experience Grid / Timeline */
.experience-timeline {
  display: block;
  margin-top: 2rem;
}

.experience-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 28px rgba(102,126,234,0.4);
}

.exp-header {
  font-size: 0.9rem;
  color: #b0b0b0;
  margin-bottom: 0.5rem;
}

.exp-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.3rem;
}

.exp-company {
  font-size: 6rem;
  display: inline-block;
  background: rgba(35, 243, 16, 0.15);
  color: #ffffff;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
}

.timeline-company {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow:
    0 0 6px #667eea,
    0 0 12px #667eea,
    0 0 20px #764ba2;
  transition: text-shadow 0.6s ease, color 0.6s ease;
}

.timeline-company:hover {
  color: #a8b4ff;
  text-shadow:
    0 0 10px #764ba2,
    0 0 20px #764ba2,
    0 0 35px #667eea;
}

.exp-tags-inline {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-left: 1rem;
  vertical-align: middle;
}

.exp-tag {
  background: rgba(102,126,234,0.15);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.exp-details {
  margin: 0;
  padding: 0;
  list-style: none;
}

.exp-details li {
  font-size: 0.95rem;
  color: #d0d0d0;
  margin-bottom: 0.5rem;
  padding-left: 1.2rem;
  position: relative;
}

.exp-details li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #667eea;
  font-weight: bold;
}

.timeline-details {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-details li {
  color: #d0d0d0;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  padding-left: 1.2rem;
  position: relative;
}

.timeline-details li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #667eea;
  font-weight: bold;
}