* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #000000, #1d1d4d);
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

#vanta-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 10;
}

/* Navigation */
        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 40px;
            background: rgba(58, 59, 60, 0.37);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            margin-bottom: 30px;
            position: sticky;
            top: 20px;
            z-index: 100;
            transition: all 0.3s ease;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }

        nav.scrolled {
            top: 0;
            border-radius: 0 0 20px 20px;
            padding: 15px 40px;
        }

        .logo {
            font-size: 1.8rem;
            font-weight: 700;
            background: linear-gradient(to right, #ffffff, #1119b1);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            transition: all 0.3s ease;
        }

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

        .nav-links {
            display: flex;
            gap: 25px;
            transition: all 0.4s ease;
        }

        .nav-links a {
            color: #e0e0e0;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
            padding: 8px 15px;
            border-radius: 50px;
            position: relative;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 2px;
            background: linear-gradient(to right, #ffffff, #09118b);
            transition: all 0.3s ease;
            transform: translateX(-50%);
        }

        .nav-links a:hover {
            color: #fff;
        }

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

        .nav-links a.active {
            background: rgba(103, 103, 221, 0.3);
            color: #fff;
        }

        .hamburger {
            display: none;
            flex-direction: column;
            cursor: pointer;
            z-index: 101;
        }

        .hamburger div {
            width: 25px;
            height: 3px;
            background: #fff;
            margin: 3px 0;
            border-radius: 10px;
            transition: all 0.3s ease;
        }

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 50px 0;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

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

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 15px;
    background: linear-gradient(to right, #ffffff, #09118b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h2 {
    font-size: clamp(1.5rem, 3vw, 1.8rem);
    margin-bottom: 20px;
    color: #a0c4ff;
    height: 2.5rem;
}

#typing-text {
    display: inline-block;
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 1.8rem;
    background-color: #6a11cb;
    margin-left: 4px;
    animation: blink 1s infinite;
    vertical-align: middle;
}

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

.hero p {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    line-height: 1.7;
    margin-bottom: 30px;
    color: #e0e0e0;
    max-width: 600px;
}

.btn {
    display: inline-block;
    background: linear-gradient(to right,  #ffffff, #09118b);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #09118b, #ffffff);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(106, 17, 203, 0.3);
}

.btn:hover::before {
    opacity: 1;
}

.profile-container {
    position: relative;
    width: min(350px, 90vw);
    height: min(350px, 90vw);
    margin: 0 auto;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    border: 5px solid rgba(106, 17, 203, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.profile-border {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: linear-gradient(45deg, #6a11cb, #2575fc, #4e54c8, #8a2be2);
    z-index: 1;
    animation: rotateBorder 8s linear infinite;
}

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

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    min-width: 300px;
}

/* Section Styling */
section {
    margin-bottom: 80px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(106, 17, 203, 0.2);
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

section h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 30px;
    background: linear-gradient(to right, #ffffff, #09118b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 15px;
}

section h2 i {
    background: linear-gradient(to right, #ffffff, #09118b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Responsive Design */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero p {
        margin: 0 auto 30px;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 70%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 20, 0.95);
        backdrop-filter: blur(10px);
        transform: translateX(100%);
        transition: transform 0.5s ease-in-out;
        z-index: 100;
    }
    
    .nav-links.active {
        transform: translateX(0);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active div:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active div:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active div:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    nav {
        padding: 10px 15px;
        margin-bottom: 15px;
    }
    
    section {
        padding: 25px;
    }
    
    .hero {
        padding: 30px 0;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5rem;
    }
    
    section {
        padding: 20px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero h2 {
        font-size: 1.4rem;
        height: 1.8rem;
    }
    
    .cursor {
        height: 1.4rem;
    }
}
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.card {
    background: rgba(122, 115, 207, 0.07);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    border: 1px solid rgba(39, 17, 203, 0.2);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(106, 17, 203, 0.3);
}

.card:hover::before {
    opacity: 1;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card h3 i {
    background: linear-gradient(to right, #ffffff, #09118b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card .date {
    color: #a0c4ff;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.card p {
    color: #e0e0e0;
    line-height: 1.6;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.skill-card {
    background: rgba(255, 255, 255, 0.07);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(83, 81, 199, 0.2);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(106, 17, 203, 0.1), rgba(37, 117, 252, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.skill-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(106, 17, 203, 0.3);
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: linear-gradient(to right, #ffffff, #09118b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.skill-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.skill-card p {
    color: #e0e0e0;
    font-size: 0.9rem;
}

/* Experience Cards */
.exp-card {
    background: rgba(122, 115, 207, 0.07);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    border: 1px solid rgba(39, 17, 203, 0.2);
    position: relative;
    overflow: hidden;
    margin-bottom: 25px;
}

.exp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.exp-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(106, 17, 203, 0.3);
}

.exp-card:hover::before {
    opacity: 1;
}

.exp-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.exp-card h3 i {
    background: linear-gradient(to right, #ffffff, #09118b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.exp-card .date {
    color: #a0c4ff;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.exp-card .company {
    margin-bottom: 15px;
    font-weight: 500;
}

.exp-card ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.exp-card ul li {
    color: #e0e0e0;
    margin-bottom: 8px;
    position: relative;
}

.exp-card ul li::before {
    content: "•";
    color: #a1c4fd;
    position: absolute;
    left: -15px;
    font-size: 1.2rem;
}
/* Fixed Timeline CSS */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #ffffff, #09118b);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-item {
    position: relative;
    width: 100%;
    padding: 20px 0;
    margin-bottom: 40px;
    display: flex;
    justify-content: flex-start;
}

.timeline-item:nth-child(even) {
    justify-content: flex-end;
}

.timeline-content-container {
    width: calc(50% - 40px);
    position: relative;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.07);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(45, 17, 203, 0.2);
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(106, 17, 203, 0.3);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(106, 17, 203, 0.5);
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline-content h3 i {
    color: #a0c4ff;
}

.date {
    color: #a0c4ff;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: block;
    font-weight: 600;
}

.timeline-content p {
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Certificate Links */
.certificate-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.certificate-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(106, 17, 203, 0.2);
    color: #fff;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(106, 17, 203, 0.3);
}

.certificate-link:hover {
    transform: scale(1.05);
    background: rgba(106, 17, 203, 0.4);
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.3);
}

.timeline-item:nth-child(even) .timeline-content-container::before {
    left: auto;
    right: -50px;
}

/* Add arrows */
.timeline-content::after {
    content: '';
    position: absolute;
    top: 30px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid rgba(45, 17, 203, 0.2);
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-content::after {
    border-left: none;
    border-right: 10px solid rgba(45, 17, 203, 0.2);
    left: -10px;
    right: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        justify-content: flex-start !important;
    }
    
    .timeline-content-container {
        width: calc(100% - 60px);
        margin-left: 60px;
    }
    
    .timeline-content-container::before {
        left: -50px;
    }
    
    .timeline-content::after {
        border-left: none;
        border-right: 10px solid rgba(45, 17, 203, 0.2);
        left: -10px;
        right: auto;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .timeline-content h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    section {
        padding: 25px;
    }
    
    .timeline-content {
        padding: 20px;
    }
    
    .timeline-content-container::before {
        width: 18px;
        height: 18px;
        left: -45px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-content-container {
        margin-left: 45px;
        width: calc(100% - 45px);
    }
}
/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.07);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(45, 17, 203, 0.142);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(106, 17, 203, 0.1), rgba(37, 117, 252, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.contact-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(106, 17, 203, 0.3);
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-card i {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #ffffff, #09118b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.contact-card p {
    color: #e0e0e0;
    margin-bottom: 20px;
}

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

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(51, 17, 203, 0.169);
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.social-links a:hover {
   transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(106, 17, 203, 0.3);
}

.social-links a:hover::before {
    opacity: 1;
}

/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.contact-form-card {
    background: rgba(255, 255, 255, 0.07);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(106, 17, 203, 0.2);
    position: relative;
    overflow: hidden;
    grid-column: span 2; /* Make form span two columns */
}

/* Responsive adjustment */
@media (max-width: 900px) {
    .contact-form-card {
        grid-column: span 1; /* On smaller screens, make form single column */
    }
}
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #a0c4ff;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid rgba(106, 17, 203, 0.3);
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6a11cb;
    box-shadow: 0 0 10px rgba(106, 17, 203, 0.5);
}

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

.submit-btn {
   background: linear-gradient(to right,  #ffffff, #09118b);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #09118b, #ffffff);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.submit-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(106, 17, 203, 0.3);
}

.submit-btn:hover::before {
    opacity: 1;
}

.form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    display: none;
}

.form-message.success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.5);
    color: #28a745;
}

.form-message.error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: #dc3545;
}

/* Footer Social Links */
footer {
    text-align: center;
    padding: 40px 0;
    margin-top: 50px;
    border-top: 1px solid rgba(106, 17, 203, 0.3);
    color: #aaa;
    font-size: 1rem;
}

.social-links-footer {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 25px;
}

/* Updated Social Icons with Consistent Hover Effect */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #09118b, #ffffff);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.social-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(106, 17, 203, 0.3);
}

.social-icon:hover::before {
    opacity: 1;
}

/* Removed brand-specific hover colors */
.social-icon:nth-child(1):hover,
.social-icon:nth-child(2):hover,
.social-icon:nth-child(3):hover,
.social-icon:nth-child(4):hover {
    background: transparent;
}

#projects {
    margin-bottom: 80px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(106, 17, 203, 0.2);
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

#projects h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    background: linear-gradient(to right, #ffffff, #09118b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 15px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.project-card {
    background: rgba(122, 115, 207, 0.07);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    border: 1px solid rgba(39, 17, 203, 0.2);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.project-card:hover {
     transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(106, 17, 203, 0.3);
   
}

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

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.project-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 24px;
    background: linear-gradient(135deg, #ffffff, #09118b);
    color: white;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
}

.project-description {
    color: #e0e0e0;
    margin-bottom: 15px;
    line-height: 1.5;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.tech-pill {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #e0e0e0;
}

.features-list {
    margin: 20px 0;
    padding-left: 20px;
}

.features-list li {
    margin-bottom: 10px;
    position: relative;
    color: #e0e0e0;
}

.features-list li::before {
    content: "•";
    color: #a1c4fd;
    position: absolute;
    left: -15px;
    font-size: 1.2rem;
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 30px;
    background: linear-gradient(to right, #ffffff, #09118b);
    transition: all 0.3s ease;
    margin-top: 10px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.github-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #09118b, #ffffff);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.github-link:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(106, 17, 203, 0.3);

}

.github-link:hover::before {
    opacity: 1;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

  /* Responsive Profile Container */
.profile-container {
    position: relative;
    width: min(350px, 80vw, 80vh); /* Responsive sizing */
    height: min(350px, 80vw, 80vh); /* Maintain aspect ratio */
    margin: 0 auto;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    border: 5px solid rgba(106, 17, 203, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.profile-border {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: linear-gradient(45deg, #6a11cb, #2575fc, #4e54c8, #8a2be2);
    z-index: 1;
    animation: rotateBorder 8s linear infinite;
}

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

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .profile-container {
        width: min(300px, 70vw, 70vh);
        height: min(300px, 70vw, 70vh);
    }
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .profile-container {
        width: min(250px, 70vw, 70vh);
        height: min(250px, 70vw, 70vh);
    }
}

@media (max-width: 400px) {
    .profile-container {
        width: min(200px, 70vw, 70vh);
        height: min(200px, 70vw, 70vh);
    }
}

.code-container {
    background: #1e1e3f;
    border-radius: 10px;
    padding: 20px;
    margin-top: 40px;
    text-align: left;
    overflow-x: auto;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    color: #a0c4ff;
}

pre {
    color: #f8f8f2;
    background: #282a36;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

/* Responsive Font System */
:root {
    --font-scale: 1.2; /* Minor Third scale */
    --font-size-sm: clamp(0.8rem, calc(0.8rem + 0.25vw), 1rem);
    --font-size-base: clamp(1rem, calc(1rem + 0.5vw), 1.25rem);
    --font-size-md: clamp(1.25rem, calc(1.25rem + 0.75vw), 1.75rem);
    --font-size-lg: clamp(1.5rem, calc(1.5rem + 1vw), 2.25rem);
    --font-size-xl: clamp(1.75rem, calc(1.75rem + 1.5vw), 2.75rem);
    --font-size-xxl: clamp(2rem, calc(2rem + 2vw), 3.5rem);
}

/* Apply font scaling to all elements */
body {
    font-size: var(--font-size-base);
    line-height: 1.6;
}

h1 { font-size: var(--font-size-xxl); }
h2 { font-size: var(--font-size-xl); }
h3 { font-size: var(--font-size-lg); }
h4 { font-size: var(--font-size-md); }

/* Navigation */
.logo {
    font-size: clamp(1.5rem, calc(1.5rem + 0.5vw), 2rem);
}

.nav-links a {
    font-size: var(--font-size-base);
}

/* Hero Section */
.hero h2 {
    font-size: clamp(1.5rem, calc(1.5rem + 1vw), 2rem);
}

.hero p {
    font-size: var(--font-size-base);
}

/* Card Content */
.card h3 {
    font-size: var(--font-size-md);
}

.card .date {
    font-size: var(--font-size-sm);
}

.card p {
    font-size: var(--font-size-base);
}

/* Project Cards */
.project-title {
    font-size: var(--font-size-md);
}

.project-description {
    font-size: var(--font-size-base);
}

.tech-pill {
    font-size: var(--font-size-sm);
}

.features-list li {
    font-size: var(--font-size-base);
}

/* Timeline */
.timeline-content h3 {
    font-size: var(--font-size-md);
}

.timeline-content .date {
    font-size: var(--font-size-sm);
}

.timeline-content p {
    font-size: var(--font-size-base);
}

/* Skills */
.skill-card h4 {
    font-size: var(--font-size-md);
}

.skill-card p {
    font-size: var(--font-size-sm);
}

/* Contact */
.contact-card h3 {
    font-size: var(--font-size-md);
}

.contact-card p {
    font-size: var(--font-size-base);
}

/* Footer */
footer p {
    font-size: var(--font-size-sm);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    :root {
        --font-scale: 1.15; /* Slightly less scaling on mobile */
    }
}

@media (max-width: 480px) {
    :root {
        --font-scale: 1.1; /* Minimal scaling on very small screens */
    }
    
    .hero h1 {
        font-size: clamp(2rem, calc(2rem + 1vw), 2.5rem);
    }
    
    .hero h2 {
        font-size: clamp(1.3rem, calc(1.3rem + 0.8vw), 1.8rem);
    }
}