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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #0f0f23;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(15, 15, 35, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #64ffda;
    text-decoration: none;
}

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

.nav-links a {
    color: #ccd6f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #64ffda;
    transition: width 0.3s ease;
}

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

.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: #ccd6f6;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3a 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(100,255,218,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 300;
    color: #ccd6f6;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #64ffda;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.2rem;
    color: #8892b0;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(100, 255, 218, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 255, 218, 0.2);
    text-align: center;
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #64ffda;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: #8892b0;
    margin-top: 0.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: #64ffda;
    color: #0f0f23;
}

.btn-primary:hover {
    background: #4ecdc4;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #64ffda;
    border: 2px solid #64ffda;
}

.btn-secondary:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-2px);
}

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

.floating-cards {
    position: relative;
    width: 400px;
    height: 400px;
}

.floating-card {
    position: absolute;
    background: rgba(100, 255, 218, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 50%;
    padding: 2rem;
    color: #ccd6f6;
    animation: float 6s ease-in-out infinite;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.floating-card i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.floating-card div {
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.2;
}

.floating-card:nth-child(1) {
    top: 20px;
    left: 20px;
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    top: 20px;
    right: 20px;
    animation-delay: 1.2s;
}

.floating-card:nth-child(3) {
    bottom: 20px;
    left: 20px;
    animation-delay: 2.4s;
}

.floating-card:nth-child(4) {
    bottom: 20px;
    right: 20px;
    animation-delay: 3.6s;
}

.floating-card:nth-child(5) {
    top: 140px;
    left: 140px;
    animation-delay: 4.8s;
}

/* Main Content Sections */
.section {
    padding: 5rem 0;
    position: relative;
}

.section:nth-child(even) {
    background: #112240;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #ccd6f6;
    text-align: left;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: #64ffda;
    border-radius: 2px;
}

.section-title-center {
    font-size: 2.5rem;
    font-weight: 600;
    color: #ccd6f6;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}
 
.section-title-center::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #64ffda;
    border-radius: 2px;
}

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

.about-text {
    font-size: 1.1rem;
    color: #8892b0;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.specialisms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.specialism-tag {
    background: rgba(100, 255, 218, 0.1);
    color: #64ffda;
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    text-align: center;
    font-weight: 500;
    border: 1px solid rgba(100, 255, 218, 0.3);
    transition: all 0.3s ease;
}

.specialism-tag:hover {
    background: rgba(100, 255, 218, 0.2);
    transform: translateY(-2px);
}

/* Achievements Section */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.achievement-card {
    background: rgba(17, 34, 64, 0.8);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #64ffda;
    position: relative;
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
}

.achievement-card:hover {
    transform: translateY(-5px);
}

.achievement-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: #64ffda;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #0f0f23;
}

.achievement-text {
    color: #ccd6f6;
    font-size: 1rem;
    line-height: 1.6;
    padding-right: 50px;
}

/* Experience Section */
.experience-timeline {
    position: relative;
    padding-left: 2rem;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #64ffda;
}

.experience-item {
    position: relative;
    margin-bottom: 3rem;
    background: rgba(17, 34, 64, 0.6);
    padding: 2rem;
    border-radius: 12px;
    margin-left: 2rem;
    backdrop-filter: blur(10px);
}

.experience-item::before {
    content: '';
    position: absolute;
    left: -3rem;
    top: 2rem;
    width: 12px;
    height: 12px;
    background: #64ffda;
    border-radius: 50%;
    border: 3px solid #0f0f23;
}

.company-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #64ffda;
    margin-bottom: 0.5rem;
}

.role-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ccd6f6;
    margin-bottom: 0.5rem;
}

.role-period {
    color: #8892b0;
    font-style: italic;
    margin-bottom: 1rem;
}

.role-description {
    color: #8892b0;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.role-achievements {
    list-style: none;
}

.role-achievements li {
    color: #ccd6f6;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
}

.role-achievements li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #64ffda;
    font-weight: bold;
}

/* Contact Section */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-text {
    font-size: 1.2rem;
    color: #8892b0;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ccd6f6;
    text-decoration: none;
    padding: 1rem 1.5rem;
    background: rgba(100, 255, 218, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(100, 255, 218, 0.2);
    transform: translateY(-2px);
}

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

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

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

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding-top: 100px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .specialisms-grid {
        grid-template-columns: 1fr;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .floating-cards {
        display: none; /* Hide floating stats on mobile */
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons {
        flex-direction: column;
    }

    /* Remove indentation for experience timeline on mobile - only for main experience section */
    #experience .experience-timeline {
        padding-left: 0;
    }

    #experience .experience-timeline::before {
        display: none; /* Hide the vertical line on mobile */
    }

    #experience .experience-item {
        margin-left: 0;
        padding: 1rem;
    }

    #experience .experience-item::before {
        display: none; /* Hide the timeline dots on mobile */
    }

    /* Center avatar on mobile */
    .hero-avatar {
        justify-content: center;
        align-items: center;
        margin-bottom: 2rem;
        display: flex;
        width: 100%;
    }

    .avatar-circle {
        width: 120px;
        height: 120px;
        margin: 0 auto; /* Additional centering */
    }

    #testimonials .container > div {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 100%;
        overflow-x: hidden;
    }

    #testimonials .container > div > div {
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .nav-links.active {
        display: flex;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(15, 15, 35, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        z-index: 999;
    }

    .mobile-menu.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .mobile-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .nav-links.active a {
        font-size: 1.5rem;
        color: #ccd6f6;
    }
}

/* Additional mobile fixes for smaller screens */
@media (max-width: 480px) {
    .hero-container {
        padding: 100px 1rem 2rem 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .avatar-circle {
        width: 100px;
        height: 100px;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: #64ffda;
    z-index: 1001;
    transition: width 0.3s ease;
}

.hero-avatar {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 2rem;
}

.avatar-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #64ffda 0%, #4ecdc4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid rgba(100, 255, 218, 0.3);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.3);
    animation: avatarGlow 3s ease-in-out infinite alternate;
    overflow: hidden;
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

@keyframes avatarGlow {
    0% {
        box-shadow: 0 10px 30px rgba(100, 255, 218, 0.3);
    }
    100% {
        box-shadow: 0 15px 40px rgba(100, 255, 218, 0.5);
    }
} 