/* Import Google Fonts - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables for easier theme management */
:root {
    --primary-bg-dark: #0A0F1E;
    --secondary-bg-dark: #12182D;
    --navbar-bg-dark: rgba(10, 15, 30, 0.85); /* Slightly transparent for blur */
    --accent-blue: #007BFF; /* Main blue accent */
    --light-blue-glow: #00A6FF; /* Brighter blue for glows */
    --text-color-light: #F0F0F0;
    --text-color-muted: #B0B0B0;
    --border-color-light: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--primary-bg-dark);
    color: var(--text-color-light);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll due to animations */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

a {
    color: var(--text-color-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-blue);
}

ul {
    list-style: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 30px; /* More rounded like the image */
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: capitalize;
}

.primary-btn {
    background-color: var(--accent-blue);
    color: var(--text-color-light);
    border: 1px solid var(--accent-blue);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.primary-btn:hover {
    background-color: var(--light-blue-glow);
    border-color: var(--light-blue-glow);
    box-shadow: 0 8px 20px rgba(0, 166, 255, 0.4);
    transform: translateY(-2px);
}

.secondary-btn {
    background-color: transparent;
    color: var(--accent-blue);
    border: 1px solid var(--accent-blue);
}

.secondary-btn:hover {
    background-color: var(--accent-blue);
    color: var(--text-color-light);
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    background-color: var(--navbar-bg-dark);
    backdrop-filter: blur(8px); /* Frosted glass effect */
    -webkit-backdrop-filter: blur(8px);
    padding: 18px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.navbar-left {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.logo-prefix {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color-muted);
    letter-spacing: 0.5px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-nav ul {
    display: flex;
    gap: 35px;
}

.main-nav ul li a {
    font-size: 16px;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    color: var(--text-color-muted);
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: var(--text-color-light);
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--accent-blue);
    left: 0;
    bottom: -8px;
    border-radius: 1px;
    transition: width 0.3s ease;
}

.main-nav ul li a.active::after,
.main-nav ul li a:hover::after {
    width: 100%;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-icon {
    font-size: 18px;
    color: var(--text-color-muted);
    transition: color 0.3s ease;
}

.nav-icon:hover {
    color: var(--accent-blue);
}

.btn-download-cv {
    background-color: var(--accent-blue);
    color: var(--text-color-light);
    border: none;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 3px 10px rgba(0, 123, 255, 0.4);
}

.btn-download-cv:hover {
    background-color: var(--light-blue-glow);
    box-shadow: 0 5px 15px rgba(0, 166, 255, 0.5);
    transform: translateY(-1px);
}


/* Hero Section */
.hero-section {
    padding-top: 180px;
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-bg-dark); /* Fallback color */
    position: relative;
    overflow: hidden;

    /* Astrological Background Nebula */
     background: linear-gradient(to top,rgba(8, 12, 22, 0.363)40%,rgba(1, 3, 7, 0.404)60%),url(assets/code2.jpg); /* Make sure this path is correct */
    background-size: 150% 120%; /* Make the background larger than the viewport for movement */
    background-position: 0% 0%; /* Initial position */
    animation: nebulaDrift 60s linear infinite alternate;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
}

.hero-image-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    animation: fadeInImage 1.2s ease-out forwards;
}

.profile-img {
    width: 90%;
    height: 90%;
    border-radius: 50%;
    object-fit: cover;
    z-index: 5;
    position: relative;
    animation: cosmicPulse 4s ease-in-out infinite alternate, fadeInImage 1.2s ease-out forwards;
}

.glow-border-1, .glow-border-2 {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: glowEffect 8s ease-in-out infinite alternate forwards; /* Longer duration for grander movement */
}

.glow-border-1 {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--light-blue-glow) 0%, transparent 60%);
    filter: blur(60px);
    z-index: 1;
    animation-delay: 0s;
}

.glow-border-2 {
    width: 115%;
    height: 115%;
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
    filter: blur(80px);
    z-index: 0;
    animation-delay: 4s; /* Stagger the second glow's animation more */
}

.hero-content {
    flex: 1;
    min-width: 450px;
}

/* Staggered text animations for hero-content children */
.hero-content .greeting {
    font-size: 22px;
    color: var(--accent-blue);
    margin-bottom: 5px;
    font-weight: 500;
    opacity: 0; /* Hide initially */
    animation: slideInFromLeft 0.8s ease-out forwards;
    animation-delay: 0.5s; /* Delay for first element */
}

.hero-content .name {
    font-size: 58px;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.1;
    background: linear-gradient(90deg, var(--text-color-light), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0; /* Hide initially */
    animation: slideInFromLeft 0.8s ease-out forwards;
    animation-delay: 0.7s; /* Delay for second element */
}

.hero-content .title {
    font-size: 26px;
    font-weight: 600;
    color: var(--text-color-muted);
    margin-bottom: 25px;
    display: flex;
    align-items: baseline;
    opacity: 0; /* Hide initially */
    animation: slideInFromLeft 0.8s ease-out forwards;
    animation-delay: 0.9s; /* Delay for third element */
}

.title .typing-effect {
    color: var(--light-blue-glow);
    position: relative;
    margin-left: 8px;
    /* Cursor effect will be handled by JS */
}

.description {
    font-size: 17px;
    color: var(--text-color-muted);
    margin-bottom: 35px;
    max-width: 600px;
    opacity: 0; /* Hide initially */
    animation: slideInFromLeft 0.8s ease-out forwards;
    animation-delay: 1.1s; /* Delay for fourth element */
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 35px;
    opacity: 0; /* Hide initially */
    animation: slideInFromLeft 0.8s ease-out forwards;
    animation-delay: 1.3s; /* Delay for social links */
}

/* Individual social icons can also pop-in with further staggering if desired */
.social-links .social-icon {
    font-size: 20px;
    color: var(--text-color-muted);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--secondary-bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    border: 1px solid var(--border-color-light);
    opacity: 1; /* start transparent */
    animation: popIn 0.6s ease-out forwards;
}

/* Keyframes to fade in and pop slightly */
@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
/* Example for staggering social icons */
.social-links .social-icon:nth-child(1) { animation-delay: 1.5s; }
.social-links .social-icon:nth-child(2) { animation-delay: 1.6s; }
.social-links .social-icon:nth-child(3) { animation-delay: 1.7s; }
.social-links .social-icon:nth-child(4) { animation-delay: 1.8s; }


.hero-buttons {
    display: flex;
    gap: 20px;
    opacity: 0; /* Hide initially */
    animation: slideInFromLeft 0.8s ease-out forwards;
    animation-delay: 1.5s; /* Delay for buttons */
}

/* Stats Section */
.stats-section {
    background-color: var(--secondary-bg-dark);
    padding: 50px 0;
    border-top: 1px solid var(--border-color-light);
    border-bottom: 1px solid var(--border-color-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    position: relative; 
    padding: 20px;
    border-radius: 10px;
    background-color: var(--primary-bg-dark); 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; 
    display: flex; 
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: -50%; 
    left: -50%; 
    width: 200%; 
    height: 200%;
    background: conic-gradient(from var(--rotate-angle, 0deg), var(--light-blue-glow) 0%, var(--accent-blue) 25%, transparent 50%, transparent 100%);

    animation: rotateBorder 4s linear infinite; 
    z-index: -1; 
    border-radius: inherit; 
}


.stat-item::after {
    content: "";
    position: absolute;
    inset: 5px; 
    background: var(--primary-bg-dark); 
    border-radius: inherit; 
    z-index: -1;
}


.stat-item > * { 
    position: relative;
    z-index: 2; 
}


.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 166, 255, 0.4); 
}


.stat-item:hover .stat-number,
.stat-item:hover .stat-text {
    color: var(--text-color-light);
}


.stat-number {
    font-size: 55px;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 5px;
    display: block;
    line-height: 1;
}

.stat-text {
    font-size: 16px;
    color: var(--text-color-muted);
    text-transform: capitalize;
}

/* General Content Sections */
.content-section {
    padding: 100px 0;
    text-align: center;
}

.content-section h2 {
    font-size: 45px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color-light);
    position: relative;
    display: inline-block;
    padding-bottom: 15px; /* Space for the underline */
}

.content-section h2::after {
    content: '';
    position: absolute;
    width: 80px; /* Shorter underline */
    height: 4px;
    background-color: var(--accent-blue);
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    border-radius: 2px;
}

.content-section p {
    font-size: 18px;
    color: var(--text-color-muted);
    max-width: 800px;
    margin: 0 auto;
}

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

@keyframes fadeInImage {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes glowEffect {
    0% {
        transform: scale(0.9) rotate(0deg);
        opacity: 0.3;
        filter: blur(60px);
    }
    25% {
        transform: scale(1.05) rotate(45deg) translateX(5px);
        opacity: 0.6;
        filter: blur(70px);
    }
    50% {
        transform: scale(0.9) rotate(90deg) translateY(-5px);
        opacity: 0.4;
        filter: blur(65px);
    }
    75% {
        transform: scale(1.1) rotate(135deg) translateX(-5px);
        opacity: 0.7;
        filter: blur(80px);
    }
    100% {
        transform: scale(0.9) rotate(180deg); /* Full half-circle rotation */
        opacity: 0.3;
        filter: blur(60px);
    }
}


@keyframes cosmicPulse {
    0% { transform: scale(1); box-shadow: 0 0 20px rgba(2, 65, 133, 0.2); }
    50% { transform: scale(1.02); box-shadow: 0 0 40px rgba(0, 123, 255, 0.6); }
    100% { transform: scale(1); box-shadow: 0 0 20px rgba(2, 65, 133, 0.2); }
}

@keyframes nebulaDrift {
    0% { background-position: 0% 0%; } /* Start at top-left */
    100% { background-position: 100% 100%; } /* End at bottom-right */
}

/* New: For floating "star" elements (if added to HTML) */
@keyframes starFloat {
    0% { transform: translate(0, 0); opacity: 0.8; }
    25% { transform: translate(10px, -10px); opacity: 0.6; }
    50% { transform: translate(0, 10px); opacity: 1; }
    75% { transform: translate(-10px, -5px); opacity: 0.7; }
    100% { transform: translate(0, 0); opacity: 0.8; }
}


@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    70% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Keyframes for the rotating border */
@keyframes rotateBorder {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Responsive Design */
@media (max-width: 1024px) {
    .main-nav ul {
        gap: 25px;
    }
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-image-wrapper {
        margin-bottom: 40px;
        width: 350px;
        height: 350px;
    }
    .hero-content {
        min-width: unset;
        width: 100%;
    }
    .name {
        font-size: 50px;
    }
    .title {
        font-size: 30px;
        justify-content: center;
    }
    .social-links {
        justify-content: center;
    }
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .navbar-left, .navbar-right {
        width: 100%;
        justify-content: center;
    }
    .main-nav {
        order: 3; /* Push nav to a new line */
        width: 100%;
    }
    .main-nav ul {
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }
    .navbar-right {
        margin-top: 10px;
        gap: 10px;
    }
    .btn-download-cv {
        font-size: 12px;
        padding: 6px 12px;
        gap: 5px;
    }
    .hero-section {
        padding-top: 200px; 
    }
    .hero-image-wrapper {
        width: 300px;
        height: 300px;
    }
    .name {
        font-size: 42px;
    }
    .title {
        font-size: 26px;
    }
    .description {
        font-size: 16px;
    }
    .stats-grid {
        grid-template-columns: 1fr; 
    }
    .stat-number {
        font-size: 48px;
    }
}

@media (max-width: 480px) {
    .navbar .container {
        padding: 0 15px;
    }
    .logo {
        font-size: 20px;
    }
    .main-nav ul {
        font-size: 14px;
    }
    .hero-section {
        padding-top: 180px;
    }
    .hero-image-wrapper {
        width: 250px;
        height: 250px;
    }
    .name {
        font-size: 36px;
    }
    .title {
        font-size: 22px;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .btn {
        width: 100%;
    }
}




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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes glowPulseAbout {
    0% { transform: scale(0.9); opacity: 0.3; }
    50% { transform: scale(1.05); opacity: 0.7; }
    100% { transform: scale(0.9); opacity: 0.3; }
}

@keyframes aboutImageRotateGlow {
    0% { transform: rotate(0deg) scale(0.9); opacity: 0.5; }
    50% { transform: rotate(180deg) scale(1.1); opacity: 0.8; }
    100% { transform: rotate(360deg) scale(0.9); opacity: 0.5; }
}








/* --- New About Section Animations --- */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes glowPulseAbout {
    0% { transform: scale(0.9); opacity: 0.3; }
    50% { transform: scale(1.05); opacity: 0.7; }
    100% { transform: scale(0.9); opacity: 0.3; }
}

@keyframes aboutImageRotateGlow {
    0% { transform: rotate(0deg) scale(0.9); opacity: 0.5; }
    50% { transform: rotate(180deg) scale(1.1); opacity: 0.8; }
    100% { transform: rotate(360deg) scale(0.9); opacity: 0.5; }
}


/* --- About Section Styles --- */
.about-section {
    margin-top:50px;
    background-color: var(--primary-bg-dark); /* Using your primary dark background */
    padding: 100px 0;
    position: relative;
    overflow: hidden; /* To contain image glows */
}

.about-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 80px; /* Increased gap */
    flex-wrap: wrap; /* Allow wrapping for responsiveness */
}

.about-content {
    flex: 2;
    min-width: 300px;
    text-align: center; /* Center the text */
    display: flex;
    flex-direction: column;
    align-items: center; /* Horizontally center the content inside */
}
.about-image {
    flex: 1; /* Takes less space than content */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 400px; /* Ensure fixed size for image container */
    height: 400px;
    flex-shrink: 0; /* Prevent shrinking */
    opacity: 0; /* Hidden for animation */
    animation: scaleIn 1s ease-out forwards;
    animation-delay: 0.5s;
}

.profile-img-about {
    width: 90%;
    height: 90%;
    border-radius: 50%;
    object-fit: cover;
    z-index: 5;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.3); /* Match theme glow */
    animation: cosmicPulse 4s ease-in-out infinite alternate; /* Re-use cosmic pulse */
}

.about-glow-1, .about-glow-2 {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: aboutImageRotateGlow 10s linear infinite alternate; /* New rotation glow */
}

.about-glow-1 {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--light-blue-glow) 0%, transparent 60%);
    filter: blur(50px);
    z-index: 1;
    animation-delay: 0s;
}

.about-glow-2 {
    width: 115%;
    height: 115%;
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
    filter: blur(70px);
    z-index: 0;
    animation-delay: 5s; /* Stagger the second glow */
}

.section-title {
    font-size: 45px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color-light);
   
    display: inline-block;
    padding-bottom: 15px;
    opacity: 0; /* Hidden for animation */
    animation: slideInUp 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

.section-title::after {
    left: 50%;
    transform: translateX(-50%);
}
.about-intro, .about-details p {
    font-size: 18px;
    color: var(--text-color-muted);
    margin-bottom: 20px;
    line-height: 1.7;
    opacity: 0; /* Hidden for animation */
    animation: slideInUp 0.8s ease-out forwards;
}
.about-intro { animation-delay: 0.4s; }
.about-details p:nth-child(1) { animation-delay: 0.6s; }
.about-details p:nth-child(2) { animation-delay: 0.8s; }

.highlight-text {
    color: var(--accent-blue);
    font-weight: 600;
}


/* Responsive adjustments for About Section */
@media (max-width: 1024px) {
    .about-container {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }
    .about-content {
        order: 2; /* Content below image on smaller screens */
    }
    .about-image {
        order: 1; /* Image above content */
        margin-bottom: 0;
    }
    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .about-skills-grid {
        grid-template-columns: 1fr; /* Stack skills vertically */
    }
}

@media (max-width: 768px) {
    .about-image {
        width: 300px;
        height: 300px;
    }
    .section-title {
        font-size: 38px;
    }
    .about-intro, .about-details p {
        font-size: 16px;
    }
    .skill-item h3 {
        font-size: 18px;
    }
    .skill-item p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .about-image {
        width: 250px;
        height: 250px;
    }
    .section-title {
        font-size: 32px;
    }
    .about-cta .btn {
        width: 100%;
    }
}


.about-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.skill-item {
  background-color: var(--secondary-bg-dark);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 166, 255, 0.1);
  border: 1px solid var(--border-color-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  animation: slideInUp 0.8s ease-out forwards;
}

.skill-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 166, 255, 0.3);
}

.skill-item h3 {
  font-size: 20px;
  margin-top: 20px;
  color: var(--accent-blue);
}

.skill-item p {
  font-size: 16px;
  color: var(--text-color-muted);
  line-height: 1.6;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* icon starts at top */
  background-color: var(--secondary-bg-dark);
  padding: 25px 15px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 166, 255, 0.1);
  border: 1px solid var(--border-color-light);
  text-align: center;
  position: relative;
  overflow: visible; /* allow accent circle to show outside */
}

.skill-icon {
  font-size: 25px;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--accent-blue);
  color: #fff;
  border-radius: 50%;
  margin-bottom: 15px;
  position: relative;
  z-index: 2; /* above accent circle */
  transition: transform 0.3s ease;
}

/* Accent circle behind the icon */
.skill-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  background: rgba(0, 166, 255, 0.15); /* subtle accent */
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 1; /* behind icon */
}

.skill-item:hover .skill-icon {
  transform: scale(1.2);
}

/* Skill Circles */
.skill-circles {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.skill-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100px;
  opacity: 0;
}

.circle {
  width: 100px;
  height: 100px;
  position: relative;
}

.mask, .fill {
  width: 100px;
  height: 100px;
  position: absolute;
  border-radius: 50%;
}

.mask {
  clip: rect(0px, 100px, 100px, 50px);
}

.fill {
  background: var(--accent-blue);
  clip: rect(0px, 50px, 100px, 0px);
  transform: rotate(0deg);
  transition: transform 1s ease-out;
}

.mask.full .fill {
  background: var(--accent-blue);
}

.inside-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--secondary-bg-dark);
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--accent-blue);
  font-size: 16px;
}

.skill-circle p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-color-muted);
}

/* Slide-up animation */
@keyframes slideInUp {
  0% {opacity: 0; transform: translateY(20px);}
  100% {opacity: 1; transform: translateY(0);}
}




/* ===========================
   Creative Education Section
=========================== */
.education-section h2 {
  font-size: 45px;
  font-weight: 700;
  margin-bottom: 60px;
  color: var(--text-color-light);
  position: relative;
  text-align: center;
}

.education-section h2 i {
  color: var(--accent-blue);
  margin-right: 12px;
}

/* Timeline Container */
.education-timeline-creative {
  position: relative;
  max-width: 1000px;
  margin: auto;
  padding: 0 20px;
}

.education-timeline-creative::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: linear-gradient(var(--accent-blue), var(--light-blue-glow));
  box-shadow: 0 0 15px rgba(0,166,255,0.5);
  border-radius: 2px;
  animation: glowPulse 3s infinite alternate;
}

/* Education Cards */
.edu-card {
  position: relative;
  width: 48%;
  padding: 25px;
  background: var(--secondary-bg-dark);
  border: 1px solid var(--border-color-light);
  border-radius: 16px;
  box-shadow: 0 0 25px rgba(0,166,255,0.15);
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(50px);
}

.edu-card.left { left: 0; }
.edu-card.right { left: 52%; }

.edu-card::before {
  content: "";
  position: absolute;
  top: 30px;
  width: 20px;
  height: 20px;
  background-color: var(--light-blue-glow);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--light-blue-glow);
  border: 2px solid var(--accent-blue);
  z-index: 1;
}

.edu-card.left::before { right: -10px; }
.edu-card.right::before { left: -10px; }

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

.edu-content h3 {
  padding-top: 25px ;
  font-size: 20px;
  color: var(--accent-blue);
  font-weight: 600;
  margin-bottom: 5px;
}

.edu-content p {
  font-size: 16px;
  color: var(--text-color-muted);
  line-height: 1.6;
  padding-bottom: 10px;
}

.edu-year {
  position: absolute;
  top: -15px;
  right: 20px;
  background: rgba(0, 123, 255, 0.15);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--light-blue-glow);
  font-weight: 600;
}

/* Hover Glow */
.edu-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(0,166,255,0.4);
}

/* Visible Animation */
.edu-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s ease;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .education-timeline-creative::before { left: 10px; }
  .edu-card {
    width: 100%;
    left: 0 !important;
    margin-left: 30px;
  }
  .edu-card::before {
    left: -20px;
  }
}

/* Glow Pulse Effect */
@keyframes glowPulse {
  0% { opacity: 0.4; }
  50% { opacity: 0.9; }
  100% { opacity: 0.4; }
}

#education.content-section {
    padding-top: 50px;   /* was 100px */
    padding-bottom: 140px; /* keep bottom balanced */
    margin-top: -30px;   /* pull it slightly upward */
}









.projects-section h2 {
  text-align: center;
  font-size: 45px;
  margin-bottom: 60px;
  color: var(--text-color-light);
}

.projects-section h2 i {
  color: var(--accent-blue);
  margin-right: 10px;
}

/* Project Card Layout */
.project-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--secondary-bg-dark);
  border: 1px solid var(--border-color-light);
  border-radius: 18px;
  padding: 40px;
  margin-bottom: 60px;
  box-shadow: 0 0 25px rgba(0,166,255,0.1);
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(50px);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(0,166,255,0.4);
}

.project-image {
  flex: 1;
  margin-right: 40px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 25px rgba(0, 123, 255, 0.2);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  transition: transform 0.6s ease;
}

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

.project-content {
  flex: 1;
}

.project-content h3 {
  font-size: 22px;
  color: var(--accent-blue);
  font-weight: 600;
  margin-bottom: 10px;
}

.project-content p {
  font-size: 16px;
  color: var(--text-color-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.project-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s ease;
}

/* Alternating Layouts */
.project-card.right {
  flex-direction: row-reverse;
}

.project-card.right .project-image {
  margin-left: 40px;
  margin-right: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .project-card,
  .project-card.right {
    flex-direction: column;
    text-align: center;
  }

  .project-image {
    margin: 0 0 25px 0;
    width: 100%;
  }

  .project-content {
    width: 100%;
  }
}

.project-images {
  flex: 1;
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  position: relative;
}

.project-images .img-box {
  flex: 1;
  overflow: hidden;
  border-radius: 14px;
  position: relative;
  box-shadow: 0 0 25px rgba(0, 123, 255, 0.15);
  border: 1px solid var(--border-color-light);
  transition: all 0.4s ease;
}

.project-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  transition: transform 0.6s ease;
}

.project-images .img-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0,166,255,0.2), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover .img-box::before {
  opacity: 1;
}

.project-card:hover .project-images img {
  transform: scale(1.05);
}

/* Layout adjustments */
.project-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--secondary-bg-dark);
  border: 1px solid var(--border-color-light);
  border-radius: 18px;
  padding: 40px;
  margin-bottom: 70px;
  box-shadow: 0 0 25px rgba(0,166,255,0.1);
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(50px);
}

.project-card.left .project-images { margin-right: 40px; }
.project-card.right .project-images { margin-left: 40px; }

.project-card.right { flex-direction: row-reverse; }

/* Animation on scroll */
.project-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s ease;
}

/* Responsive */
@media (max-width: 900px) {
  .project-card,
  .project-card.right {
    flex-direction: column;
    text-align: center;
  }

  .project-images {
    flex-direction: row;
    width: 100%;
    margin-bottom: 25px;
  }

  .project-images .img-box {
    height: 180px;
  }

  .project-content {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .project-images {
    flex-direction: column;
  }
  .project-images .img-box {
    width: 100%;
    height: auto;
  }
}




/* Carousel inside project card (auto sliding) */
.project-carousel {
  flex: 1;
  width: 100%;
  height: 320px;                     /* adjust height as needed */
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-color-light);
  box-shadow: 0 0 25px rgba(0,123,255,0.12);
}

/* slides wrapper — each .slide is 100% width */
.project-carousel .slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}

.project-carousel .slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
}

.project-carousel .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center;
  transition: transform 0.6s ease;
}

/* glow overlay on hover */
.project-carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 10%, rgba(0,166,255,0.06), transparent 20%),
              radial-gradient(circle at 90% 90%, rgba(0,123,255,0.04), transparent 25%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover .project-carousel::after {
  opacity: 1;
}

.project-card:hover .slide img {
  transform: scale(1.03);
}

/* small pagination dots (optional visual) */
.project-carousel .dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 12px;
  display: flex;
  gap: 8px;
  z-index: 5;
}

.project-carousel .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s ease, transform 0.3s ease;
}

.project-carousel .dot.active {
  background: var(--light-blue-glow);
  transform: scale(1.2);
  box-shadow: 0 0 8px rgba(0,166,255,0.5);
}

/* ensure project content spacing remains same */
.project-card.left .project-carousel { margin-right: 40px; }
.project-card.right .project-carousel { margin-left: 40px; }

/* Responsive heights */
@media (max-width: 900px) {
  .project-carousel { height: 220px; }
}
@media (max-width: 600px) {
  .project-carousel { height: 180px; }
}
#projects.content-section {
    padding-top: 160px;   /* was 100px */
    padding-bottom: 10px; /* keep bottom balanced */
    margin-top: -30px;   /* pull it slightly upward */
}





/* ===========================
   Creative Project Carousel Style
=========================== */
project-carousel {
  flex: 1;
  width: 100%;
  height: 320px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.05), rgba(10, 10, 25, 1));
  box-shadow: 0 8px 30px rgba(0, 200, 255, 0.15);
  transition: transform 0.6s ease, box-shadow 0.6s ease;
  perspective: 1000px;
}

.project-carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: conic-gradient(
    from 0deg,
    #212222 100%
  );
  opacity: 0.01;
  animation: rotateGlow 12s linear infinite;
  z-index: 2;
  pointer-events: none;
}

@keyframes rotateGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.project-carousel .slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}

.project-carousel .slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.project-carousel .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  transform: scale(1);
  filter: brightness(0.9) contrast(1.1) saturate(1.2);
  transition: transform 1s ease, filter 0.5s ease;
}

/* Floating neon reflection */
.project-carousel .slide::after {
  content: "";
  position: absolute;
  top: -70%;
  left: -70%;
  width: 240%;
  height: 240%;
  background: radial-gradient(circle, rgba(0,255,255,0.1) 0%, transparent 75%);
  transform: rotate(20deg);
  animation: floatLight 12s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes floatLight {
  0% { transform: translate(-12%, -12%) rotate(15deg); opacity: 0.3; }
  50% { transform: translate(12%, 12%) rotate(-15deg); opacity: 0.6; }
  100% { transform: translate(-6%, -6%) rotate(15deg); opacity: 0.4; }
}

/* 3D hover tilt + neon glow */
.project-card:hover .project-carousel {
  transform: scale(1.04) rotateX(5deg) rotateY(-3deg);
  box-shadow: 0 0 50px rgba(101, 102, 102, 0.4), 0 0 80px rgba(255,0,200,0.2);
}

.project-card:hover .slide img {
  transform: scale(1.1);
  filter: brightness(1) contrast(1.2) saturate(1.3);
}

/* Light sweep effect */
.project-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-20deg);
  animation: lightSweep 6s linear infinite;
  z-index: 3;
  pointer-events: none;
  opacity: 0.5;
}

@keyframes lightSweep {
  0% { left: -120%; }
  100% { left: 120%; }
}

/* Navigation dots */
.project-carousel .dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 14px;
  display: flex;
  gap: 10px;
  z-index: 5;
}

.project-carousel .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.project-carousel .dot.active {
  background: #00f0ff;
  transform: scale(1.4);
  box-shadow: 0 0 10px #00f0ff, 0 0 20px #ff00c8;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .project-carousel { height: 250px; }
}
@media (max-width: 600px) {
  .project-carousel { height: 180px; }
}





.contact-intro-wrapper {
    margin-bottom: 50px;
    opacity: 0;
    animation: slideInUp 0.8s ease-out forwards;
    animation-delay: 0.7s;
}

.contact-grid {
    display: flex;
    justify-content: center;
    
}


.contact-details-wrapper {
    width: 100%;
    max-width: 900px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 50px 30px; 
    background-color: transparent; 
    border-radius: 20px;
    border: none;
    
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.2); 
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}


.contact-details-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--secondary-bg-dark);
    border-radius: 20px;
    border: 1px solid var(--border-color-light);
    z-index: -1;
}


.contact-detail-card {
    
    background-color: transparent; 
    padding: 35px 20px; 
    border-radius: 15px; 
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05); 
    box-shadow: 0 0 0 rgba(0, 0, 0, 0); 
    
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 2;
}


.contact-detail-card:hover {
    transform: translateY(-10px); 
    background-color: rgba(0, 123, 255, 0.05); 
    border-color: var(--accent-blue); 
    
   
    box-shadow: 
        0 0 5px var(--light-blue-glow), 
        0 0 15px var(--accent-blue), 
        0 15px 40px rgba(0, 123, 255, 0.5); 
}

.contact-icon-lg {
    font-size: 30px; 
    color: var(--light-blue-glow);
    margin-bottom: 15px;
    display: block;
    transition: transform 0.4s ease, text-shadow 0.4s ease;
    

    text-shadow: 0 0 10px rgba(0, 166, 255, 0.8);
}

.contact-detail-card:hover .contact-icon-lg {
    transform: scale(1.15) rotate(5deg); 
    text-shadow: 0 0 15px var(--light-blue-glow);
}

.contact-detail-card h3 {
    font-size: 22px; 
    font-weight: 700;
    color: var(--text-color-light);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.contact-detail-card p {
    font-size: 16px;
    color: var(--text-color-muted);
    line-height: 1.5;
}

.contact-detail-card a.highlight-text {
    font-weight: 600;
    color: var(--light-blue-glow);
    text-shadow: 0 0 5px rgba(0, 166, 255, 0.5); 
}

.contact-details-wrapper.visible {
    opacity: 1;
    transform: translateY(0);
}


@media (max-width: 768px) {
    .contact-details-wrapper {
        grid-template-columns: 1fr; 
        padding: 30px 20px;
        max-width: 90%;
    }
}


.site-footer {
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(0, 123, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 40px 0 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.footer-left {
  text-align: left;
}

.footer-logo {
  color: var(--primary-color, #007bff);
  font-size: 1.6rem;
  margin-bottom: 6px;
  font-weight: 600;
}

.footer-left p {
  font-size: 0.95rem;
  color: #ccc;
  margin: 0;
}

.footer-right {
  display: flex;
  gap: 15px;
}

.footer-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 123, 255, 0.1);
  color: #007bff;
  font-size: 1.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.footer-icon:hover {
  background: #007bff;
  color: #fff;
  transform: translateY(-3px);
}


@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .footer-left {
    margin-bottom: 20px;
  }
}
