        /* VARIABLES */
        :root {
            --white: #ffffff; /* Reines Weiß */
            --gray-blue: #878f9d; /* Grau-Blau (korrigiert von 878fgd) */
            --indigo: #424769; /* Indigo/Dunkelblau */
            --navy: #2d3250; /* Navy-Blau/Dunkler Indigo */
            --peach: #ffb17a; /* Pfirsich-Orange (korrigiert von fgb17a) */

            --primary: var(--indigo);
            --secondary: var(--navy);
            --accent: var(--peach);
            --text: var(--navy);
            --text-light: var(--gray-blue);
            --light: var(--white);
            --dark: var(--navy);
            --bg: #f8f9fa; /* Sehr helles Grau für den Hintergrund */
            --card-bg: var(--white);
            --transition: all 0.3s ease;
            --shadow: 0 10px 30px rgba(45, 50, 80, 0.1);
            --border-radius: 8px;
        }

        /* DARK MODE */
        [data-theme="dark"] {
            --text: #f0f1f5;
            --text-light: #c5cad6;
            --light: #1a1d2e;
            --dark: #f0f1f5;
            --bg: #0f1119;
            --card-bg: #1a1d2e;
            --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        }

        [data-theme="dark"] .hero {
            background: linear-gradient(135deg, #0a0d14 0%, #1a1d2e 70%, #2a2d3e 100%);
        }

        [data-theme="dark"] footer {
            background: linear-gradient(135deg, #0a0d14 0%, #1a1d2e 100%);
        }

        /* Dark mode navigation */
        [data-theme="dark"] header {
            background-color: rgba(15, 17, 25, 0.95);
        }

        [data-theme="dark"] header.sticky {
            background-color: #0f1119;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
        }

        [data-theme="dark"] .logo {
            color: #f0f1f5;
        }

        [data-theme="dark"] .nav-link {
            color: #e0e2e8;
        }

        [data-theme="dark"] .nav-link:hover {
            color: var(--accent);
        }

        /* Dark mode text improvements for better readability */
        [data-theme="dark"] h1,
        [data-theme="dark"] h2,
        [data-theme="dark"] h3,
        [data-theme="dark"] h4,
        [data-theme="dark"] h5,
        [data-theme="dark"] h6 {
            color: #f0f1f5;
        }

        [data-theme="dark"] p,
        [data-theme="dark"] span:not(.highlight-text):not(.tech-tag),
        [data-theme="dark"] li {
            color: #e0e2e8;
        }

        [data-theme="dark"] .section-title {
            color: #f0f1f5;
        }

        [data-theme="dark"] .skill-name span {
            color: #e0e2e8;
        }

        [data-theme="dark"] .timeline-content p {
            color: #d0d3db;
        }

        [data-theme="dark"] .timeline-content h3 {
            color: #f0f1f5;
        }

        [data-theme="dark"] .timeline-content .date {
            color: #c5cad6;
        }

        [data-theme="dark"] .about-info p {
            color: #d0d3db;
        }

        [data-theme="dark"] .project-card p {
            color: #d0d3db;
        }

        [data-theme="dark"] .project-card h3 {
            color: #f0f1f5;
        }

        [data-theme="dark"] .contact-details p,
        [data-theme="dark"] .contact-details a {
            color: #d0d3db;
        }

        [data-theme="dark"] .contact-details h4 {
            color: #f0f1f5;
        }

        [data-theme="dark"] .footer-section span {
            color: rgba(255, 255, 255, 0.85);
        }

        [data-theme="dark"] .footer-links a {
            color: rgba(255, 255, 255, 0.8);
        }

        [data-theme="dark"] .info-item p {
            color: #d0d3db;
        }

        /* Dark mode card backgrounds */
        [data-theme="dark"] .card,
        [data-theme="dark"] .skill-category,
        [data-theme="dark"] .project-card,
        [data-theme="dark"] .timeline-content,
        [data-theme="dark"] .contact-form {
            background-color: #1a1d2e;
            border-color: rgba(255, 177, 122, 0.2);
        }

        /* Dark mode borders */
        [data-theme="dark"] .skill-bar {
            background-color: #2a2d3e;
        }

        /* Improve form visibility in dark mode */
        [data-theme="dark"] .form-control {
            background-color: #2a2d3e;
            border-color: #3a3d4e;
            color: #f0f1f5;
        }

        [data-theme="dark"] .form-control::placeholder {
            color: #8a8f9d;
        }

        [data-theme="dark"] .form-control:focus {
            background-color: #1a1d2e;
            border-color: var(--accent);
        }

        /* Tech tags in dark mode */
        [data-theme="dark"] .tech-tag {
            background: #2a2d3e;
            color: #c5cad6;
        }

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

        html {
            scroll-behavior: smooth;
        }

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

        h1, h2, h3, h4 {
            font-weight: 700;
            line-height: 1.2;
            margin-bottom: 1rem;
            color: var(--dark);
        }

        p {
            margin-bottom: 1rem;
            color: var(--text);
        }

        a {
            text-decoration: none;
            color: var(--primary);
            transition: var(--transition);
        }

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

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

        .btn {
            display: inline-block;
            padding: 0.8rem 1.5rem;
            background-color: var(--primary);
            color: var(--white);
            border-radius: var(--border-radius);
            transition: var(--transition);
            border: none;
            cursor: pointer;
            font-weight: 600;
            text-transform: uppercase;
            font-size: 0.9rem;
            letter-spacing: 1px;
            position: relative;
            overflow: hidden;
            z-index: 1;
            box-shadow: 0 4px 15px rgba(66, 71, 105, 0.2);
        }

        .btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: 0.5s;
            z-index: -1;
        }

        .btn:hover::before {
            left: 100%;
        }

        .btn:hover {
            background-color: var(--accent);
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(255, 177, 122, 0.3);
            color: var(--navy);
        }

        .btn-outline {
            background-color: transparent;
            border: 2px solid var(--primary);
            color: var(--primary);
            box-shadow: none;
        }

        .btn-outline:hover {
            background-color: var(--primary);
            color: var(--white);
        }

        .btn-accent {
            background-color: var(--accent);
            color: var(--navy);
        }

        .btn-accent:hover {
            background-color: #ff9d55;
            color: var(--navy);
        }

        section {
            padding: 100px 0;
            position: relative;
            contain: layout style;
        }

        /* Performance: Reduce animations on low-end devices */
        @media (prefers-reduced-motion: reduce) {
            *,
            *::before,
            *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }

        .section-title {
            text-align: center;
            margin-bottom: 60px;
            position: relative;
            color: var(--dark);
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -15px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: linear-gradient(90deg, var(--primary), var(--accent));
            border-radius: 2px;
        }

        .card {
            background-color: var(--card-bg);
            border-radius: var(--border-radius);
            padding: 2rem;
            box-shadow: var(--shadow);
            transition: var(--transition);
            margin-bottom: 2rem;
            position: relative;
            overflow: hidden;
            z-index: 1;
            border-top: 4px solid transparent;
            border-image: linear-gradient(to right, var(--primary), var(--accent));
            border-image-slice: 1;
        }

        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(45, 50, 80, 0.15);
        }

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

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

        .secondary-text {
            color: var(--secondary);
        }

        /* ACCESSIBILITY */
        .visually-hidden {
            position: absolute;
            width: 1px;
            height: 1px;
            margin: -1px;
            padding: 0;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

        /* Enhanced focus indicators for accessibility */
        a:focus,
        button:focus,
        input:focus,
        textarea:focus,
        select:focus {
            outline: 3px solid var(--accent);
            outline-offset: 2px;
        }

        a:focus-visible,
        button:focus-visible,
        input:focus-visible,
        textarea:focus-visible {
            outline: 3px solid var(--accent);
            outline-offset: 2px;
        }

        /* Skip to main content link */
        .skip-to-main {
            position: absolute;
            top: -40px;
            left: 0;
            background: var(--primary);
            color: var(--white);
            padding: 8px 16px;
            text-decoration: none;
            z-index: 10000;
        }

        .skip-to-main:focus {
            top: 0;
        }

        /* HEADER & NAVIGATION */
        header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 1000;
            background-color: transparent;
            transition: var(--transition);
            padding: 1.5rem 0;
        }

        header.sticky {
            background-color: var(--white);
            box-shadow: 0 5px 20px rgba(45, 50, 80, 0.1);
            padding: 1rem 0;
        }

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

        /* THEME TOGGLE BUTTON */
        button#theme-toggle.theme-toggle {
            /* Layout */
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            width: 45px !important;
            height: 45px !important;
            margin-left: auto !important;
            padding: 0 !important;

            /* Appearance */
            background: rgba(255, 177, 122, 0.15) !important;
            background-color: rgba(255, 177, 122, 0.15) !important;
            border: 2px solid #ffb17a !important;
            border-radius: 50% !important;
            color: #ffffff !important;
            font-size: 1.2rem !important;

            /* Behavior */
            cursor: pointer !important;
            transition: all 0.3s ease !important;
            box-shadow: 0 2px 10px rgba(255, 177, 122, 0.3) !important;
            position: relative !important;
            z-index: 100 !important;

            /* Remove default button styles */
            outline: none !important;
            -webkit-appearance: none !important;
            -moz-appearance: none !important;
            appearance: none !important;
        }

        /* Sticky header adjustments */
        header.sticky button#theme-toggle.theme-toggle {
            color: #424769 !important;
            background: rgba(66, 71, 105, 0.1) !important;
            background-color: rgba(66, 71, 105, 0.1) !important;
            border-color: #424769 !important;
            box-shadow: 0 2px 10px rgba(66, 71, 105, 0.2) !important;
        }

        /* Hover effect */
        button#theme-toggle.theme-toggle:hover {
            background: #ffb17a !important;
            background-color: #ffb17a !important;
            color: #2d3250 !important;
            transform: rotate(15deg) scale(1.1) !important;
            box-shadow: 0 4px 20px rgba(255, 177, 122, 0.5) !important;
        }

        /* Active/click effect */
        button#theme-toggle.theme-toggle:active {
            transform: rotate(15deg) scale(0.95) !important;
        }

        /* Icon inside button */
        button#theme-toggle.theme-toggle i {
            pointer-events: none !important;
            display: block !important;
            line-height: 1 !important;
        }

        /* Focus state for accessibility */
        button#theme-toggle.theme-toggle:focus {
            outline: 3px solid #ffb17a !important;
            outline-offset: 3px !important;
        }

        .logo {
            font-size: 1.8rem;
            font-weight: 800;
            color: var(--white);
            position: relative;
            letter-spacing: -0.5px;
        }

        header.sticky .logo {
            color: var(--dark);
        }

        .logo span {
            color: var(--accent);
            background: linear-gradient(45deg, var(--accent), #ffd6b1);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .nav-menu {
            display: flex;
            list-style: none;
        }

        .nav-item {
            margin-left: 2rem;
        }

        .nav-link {
            color: var(--white);
            font-weight: 600;
            position: relative;
            padding-bottom: 5px;
        }

        header.sticky .nav-link {
            color: var(--dark);
        }

        .nav-link::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(to right, var(--primary), var(--accent));
            transition: var(--transition);
        }

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

        .hamburger {
            display: none;
            cursor: pointer;
            background: none;
            border: none;
            padding: 0.5rem;
        }

        .hamburger:focus {
            outline: 3px solid var(--accent);
            outline-offset: 2px;
        }

        .hamburger.active .bar:nth-child(1) {
            transform: translateY(8px) rotate(45deg);
        }

        .hamburger.active .bar:nth-child(2) {
            opacity: 0;
        }

        .hamburger.active .bar:nth-child(3) {
            transform: translateY(-8px) rotate(-45deg);
        }

        .bar {
            display: block;
            width: 25px;
            height: 3px;
            margin: 5px auto;
            transition: var(--transition);
            background-color: var(--light);
        }

        header.sticky .bar {
            background-color: var(--dark);
        }

        /* HERO SECTION */
        .hero {
            height: 100vh;
            background: linear-gradient(135deg, var(--navy) 0%, var(--primary) 70%, var(--accent) 100%);
            display: flex;
            align-items: center;
            color: var(--white);
            position: relative;
            overflow: hidden;
            will-change: background-position;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.08' fill-rule='evenodd'/%3E%3C/svg%3E");
            opacity: 0.3;
        }

        .hero-content {
            max-width: 800px;
            position: relative;
            z-index: 1;
        }

        .hero-title {
            font-size: 3.5rem;
            margin-bottom: 1.5rem;
            opacity: 0;
            transform: translateY(30px);
            animation: fadeInUp 1s forwards 0.5s;
            color: var(--white);
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
            font-weight: 800;
            letter-spacing: -0.5px;
        }

        .hero-subtitle {
            font-size: 1.5rem;
            margin-bottom: 2rem;
            opacity: 0;
            transform: translateY(30px);
            animation: fadeInUp 1s forwards 0.7s;
            color: var(--accent);
            visibility: hidden; /* Hide until JS loads */
            font-weight: 600;
        }

        .hero-subtitle.visible {
            visibility: visible;
        }

        .hero-text {
            margin-bottom: 2.5rem;
            opacity: 0;
            transform: translateY(30px);
            animation: fadeInUp 1s forwards 0.9s;
            color: var(--light);
            font-size: 1.1rem;
            line-height: 1.8;
            max-width: 600px;
        }

        .hero-btns {
            display: flex;
            gap: 1rem;
            opacity: 0;
            transform: translateY(30px);
            animation: fadeInUp 1s forwards 1.1s;
        }

        .scroll-down {
            position: absolute;
            bottom: 40px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 1.5rem;
            color: white;
            animation: bounce 2s infinite;
            cursor: pointer;
        }

        /* About Section Enhancements */
        .about-info {
            position: relative;
        }

        .about-info::before {
            content: '';
            position: absolute;
            top: -20px;
            left: -20px;
            width: 60px;
            height: 60px;
            border-top: 4px solid var(--accent);
            border-left: 4px solid var(--accent);
            z-index: -1;
            opacity: 0.6;
        }

        .about-info::after {
            content: '';
            position: absolute;
            bottom: -20px;
            right: -20px;
            width: 60px;
            height: 60px;
            border-bottom: 4px solid var(--accent);
            border-right: 4px solid var(--accent);
            z-index: -1;
            opacity: 0.6;
        }

        .about-content {
            position: relative;
        }

        .about-image {
            position: relative;
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--shadow);
        }

        .about-image::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(
                45deg,
                rgba(23, 190, 187, 0.6),
                rgba(255, 107, 107, 0.6)
            );
            opacity: 0;
            transition: opacity 0.4s ease;
            z-index: 1;
        }

        .about-image:hover::before {
            opacity: 0.6;
        }

        .personal-info {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
            margin-bottom: 2rem;
        }

        .info-item {
            display: flex;
            align-items: center;
            transition: var(--transition);
        }

        .info-item:hover {
            transform: translateX(5px);
        }

        .info-item i {
            color: var(--accent);
            margin-right: 10px;
            font-size: 1.2rem;
        }

        /* Skills Section Enhancements */
        .skills-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 3.5rem; /* Erhöhter vertikaler Abstand zwischen den Skill Cards */
        }

        .skill-category {
            background-color: var(--card-bg);
            padding: 2rem;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            transition: var(--transition);
            border-bottom: 3px solid transparent;
            position: relative;
            overflow: hidden;
        }

        .skill-category:nth-child(1) {
            border-bottom-color: var(--primary);
        }

        .skill-category:nth-child(2) {
            border-bottom-color: var(--accent);
        }

        .skill-category:nth-child(3) {
            border-bottom-color: var(--primary);
        }

        .skill-category:nth-child(4) {
            border-bottom-color: var(--accent);
        }

        .skill-category::after {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(66, 71, 105, 0.05) 0%, rgba(255, 177, 122, 0.05) 100%);
            top: 0;
            left: 0;
            z-index: -1;
            opacity: 0;
            transition: var(--transition);
        }

        .skill-category:hover::after {
            opacity: 1;
        }

        .skill-category:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 35px rgba(45, 50, 80, 0.1);
        }

        .skill-category h3 {
            font-size: 1.5rem;
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            color: var(--dark);
        }

        .skill-category h3 i {
            margin-right: 10px;
            color: var(--primary);
            transition: var(--transition);
        }

        .skill-category:hover h3 i {
            transform: rotate(360deg);
            color: var(--accent);
        }

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

        .skill-list li {
            padding: 0.75rem 0;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            color: var(--text);
            font-size: 1rem;
            transition: var(--transition);
            border-bottom: 1px solid rgba(66, 71, 105, 0.1);
        }

        .skill-list li:last-child {
            border-bottom: none;
        }

        .skill-list li i {
            color: var(--accent);
            font-size: 1.1rem;
            flex-shrink: 0;
        }

        .skill-list li:hover {
            transform: translateX(5px);
            color: var(--accent);
        }

        [data-theme="dark"] .skill-list li {
            border-bottom-color: rgba(255, 255, 255, 0.1);
            color: #e0e2e8;
        }

        [data-theme="dark"] .skill-list li:hover {
            color: var(--accent);
        }

        .skill-item {
            margin-bottom: 1.5rem;
        }

        .skill-name {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
            font-weight: 500;
        }

        .skill-name span:first-child {
            color: var(--text);
        }

        .skill-name span:last-child {
            color: var(--primary);
        }

        .skill-bar {
            height: 8px;
            background-color: #f0f2f5;
            border-radius: 4px;
            overflow: hidden;
            position: relative;
        }

        .skill-progress {
            height: 100%;
            background: linear-gradient(90deg, var(--primary), var(--accent));
            background-size: 200% 100%;
            animation: gradientBg 3s ease infinite;
            border-radius: 4px;
            position: relative;
            width: 0;
            transition: width 1.5s ease;
            box-shadow: 0 0 10px rgba(66, 71, 105, 0.2);
        }

        /* CERTIFICATES SECTION */
        .certificates-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 2rem;
        }

        .certificate-card {
            background-color: var(--card-bg);
            padding: 2.5rem;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            transition: var(--transition);
            border-left: 5px solid transparent;
            border-image: linear-gradient(to bottom, var(--primary), var(--accent));
            border-image-slice: 1;
            position: relative;
            overflow: hidden;
        }

        .certificate-card::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 100px;
            height: 100px;
            background: linear-gradient(135deg, rgba(66, 71, 105, 0.05), rgba(255, 177, 122, 0.05));
            border-radius: 0 0 0 100%;
            opacity: 0;
            transition: var(--transition);
        }

        .certificate-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(45, 50, 80, 0.15);
        }

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

        .certificate-icon {
            width: 70px;
            height: 70px;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            font-size: 2rem;
            margin-bottom: 1.5rem;
            box-shadow: 0 10px 25px rgba(66, 71, 105, 0.2);
            transition: var(--transition);
        }

        .certificate-card:hover .certificate-icon {
            transform: rotateY(180deg) scale(1.1);
        }

        .certificate-card h3 {
            color: var(--primary);
            font-size: 1.5rem;
            margin-bottom: 1rem;
            transition: var(--transition);
        }

        .certificate-card:hover h3 {
            color: var(--accent);
        }

        .certificate-issuer,
        .certificate-date {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.75rem;
            color: var(--text-light);
            font-size: 0.95rem;
        }

        .certificate-issuer i,
        .certificate-date i {
            color: var(--accent);
            font-size: 1rem;
        }

        .certificate-card p {
            color: var(--text-light);
            line-height: 1.6;
            margin-top: 1rem;
        }

        /* Dark mode styles for certificates */
        [data-theme="dark"] .certificate-card {
            background-color: #1a1d2e;
            border-color: rgba(255, 177, 122, 0.3);
        }

        [data-theme="dark"] .certificate-card h3 {
            color: #f0f1f5;
        }

        [data-theme="dark"] .certificate-card:hover h3 {
            color: var(--accent);
        }

        [data-theme="dark"] .certificate-card p,
        [data-theme="dark"] .certificate-issuer,
        [data-theme="dark"] .certificate-date {
            color: #c5cad6;
        }

        /* PROJECTS SECTION */
        .projects-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 2rem;
        }

        .project-card {
            position: relative;
            overflow: hidden;
            transition: var(--transition);
            border-radius: var(--border-radius);
            background-color: var(--card-bg);
            box-shadow: var(--shadow);
            padding: 2rem;
            opacity: 0;
            transform: translateY(40px);
        }

        .project-card.reveal-card {
            animation: revealProject 0.8s forwards;
        }

        @keyframes revealProject {
            0% {
                opacity: 0;
                transform: translateY(40px);
            }
            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .project-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background: linear-gradient(to bottom, var(--primary), var(--accent));
            transform: scaleY(0);
            transform-origin: bottom;
            transition: transform 0.4s ease;
        }

        .project-card:hover {
            box-shadow: 0 15px 35px rgba(45, 50, 80, 0.1);
        }

        .project-card:hover::before {
            transform: scaleY(1);
        }

        .project-card h3 {
            color: var(--primary);
            margin-bottom: 1rem;
            font-size: 1.5rem;
            transition: var(--transition);
            font-weight: 700;
        }

        .project-card:hover h3 {
            transform: translateX(8px);
            color: var(--accent);
        }

        .project-card p {
            color: var(--text-light);
            margin-bottom: 1.5rem;
            transition: var(--transition);
            line-height: 1.6;
        }

        .project-card:hover p {
            transform: translateX(5px);
        }

        .tech-tags {
            display: flex;
            flex-wrap: wrap;
            margin-bottom: 1.5rem;
        }

        .tech-tag {
            display: inline-block;
            background: #f0f2f5;
            color: var(--primary);
            padding: 0.3rem 0.8rem;
            border-radius: 20px;
            margin-right: 0.5rem;
            margin-bottom: 0.5rem;
            font-size: 0.85rem;
            transition: var(--transition);
            font-weight: 500;
        }

        .project-card:hover .tech-tag {
            background: linear-gradient(135deg, rgba(66, 71, 105, 0.1), rgba(255, 177, 122, 0.1));
            color: var(--accent);
        }

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

        .project-links .btn {
            padding: 0.5rem 1rem;
            font-size: 0.9rem;
        }

        /* TIMELINE */
        .timeline {
            position: relative;
            max-width: 1200px;
            margin: 0 auto;
        }

        .timeline::after {
            content: '';
            position: absolute;
            width: 6px;
            background: linear-gradient(to bottom, var(--primary), var(--accent));
            top: 0;
            bottom: 0;
            left: 50%;
            margin-left: -3px;
            border-radius: 3px;
        }

        .timeline-item {
            padding: 10px 40px;
            position: relative;
            width: 50%;
            opacity: 0;
            transform: translateY(50px);
            transition: all 0.6s ease;
        }

        .timeline-item.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .timeline-item::after {
            content: '';
            position: absolute;
            width: 25px;
            height: 25px;
            right: -17px;
            background-color: var(--card-bg);
            border: 4px solid var(--accent);
            top: 15px;
            border-radius: 50%;
            z-index: 1;
            transition: var(--transition);
        }

        .timeline-item:hover::after {
            background-color: var(--accent);
            transform: scale(1.2);
        }

        .left {
            left: 0;
        }

        .right {
            left: 50%;
        }

        .right::after {
            left: -16px;
        }

        .timeline-content {
            padding: 20px 30px;
            background-color: var(--card-bg);
            position: relative;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            transition: var(--transition);
        }

        .timeline-content:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(45, 50, 80, 0.1);
            background: linear-gradient(135deg, var(--white), #f9fafc);
        }

        .timeline-content h3 {
            font-size: 1.5rem;
            margin-bottom: 10px;
            color: var(--primary);
            transition: var(--transition);
        }

        .timeline-content:hover h3 {
            color: var(--accent);
        }

        .timeline-content .date {
            font-size: 0.9rem;
            color: var(--text-light);
            font-weight: 600;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            transition: var(--transition);
        }

        .timeline-content:hover .date {
            color: var(--primary);
        }

        .timeline-content .date i {
            margin-right: 8px;
            color: var(--accent);
        }

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

        .contact-info {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        .contact-item {
            display: flex;
            align-items: flex-start;
            gap: 15px;
            transition: var(--transition);
        }

        .contact-item:hover {
            transform: translateX(5px);
        }

        .contact-icon {
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            font-size: 1.2rem;
            flex-shrink: 0;
            box-shadow: 0 10px 20px rgba(66, 71, 105, 0.2);
            transition: var(--transition);
        }

        .contact-item:hover .contact-icon {
            transform: rotateY(180deg);
            background: linear-gradient(135deg, var(--accent), var(--primary));
        }

        .contact-details h4 {
            margin-bottom: 5px;
            font-size: 1.2rem;
            color: var(--dark);
        }

        .contact-details p, .contact-details a {
            color: var(--text-light);
            transition: var(--transition);
        }

        .contact-details a:hover {
            color: var(--accent);
        }

        .social-links {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }

        .social-links a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background-color: var(--primary);
            border-radius: 50%;
            color: var(--white);
            transition: var(--transition);
            box-shadow: 0 5px 15px rgba(66, 71, 105, 0.2);
        }

        .social-links a:hover {
            background: linear-gradient(135deg, var(--primary), var(--accent));
            transform: translateY(-5px) rotate(360deg);
        }

        .contact-form {
            background-color: var(--card-bg);
            padding: 2rem;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            transition: var(--transition);
            border-top: 4px solid transparent;
            border-image: linear-gradient(to right, var(--primary), var(--accent));
            border-image-slice: 1;
        }

        .contact-form:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(45, 50, 80, 0.1);
        }

        .form-group {
            margin-bottom: 1.5rem;
            position: relative;
        }

        .form-control {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #e0e0e0;
            border-radius: var(--border-radius);
            font-size: 1rem;
            transition: var(--transition);
            background-color: #f9fafc;
            color: var(--text);
        }

        .form-control:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 2px rgba(255, 177, 122, 0.2);
            background-color: var(--white);
        }

        .form-control::placeholder {
            color: var(--text-light);
            opacity: 0.7;
        }

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

        /* FOOTER */
        footer {
            background: linear-gradient(135deg, var(--navy) 0%, var(--primary) 100%);
            color: var(--white);
            padding: 3rem 0;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            margin-bottom: 2rem;
        }

        .footer-section h3 {
            color: var(--white);
            font-size: 1.5rem;
            margin-bottom: 1.5rem;
            position: relative;
            padding-bottom: 10px;
        }

        .footer-section h3::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 50px;
            height: 2px;
            background: linear-gradient(to right, var(--accent), var(--white));
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 10px;
            transition: var(--transition);
        }

        .footer-links li:hover {
            transform: translateX(5px);
        }

        .footer-links a {
            color: rgba(255, 255, 255, 0.8);
            transition: var(--transition);
            display: inline-block;
        }

        .footer-links a:hover {
            color: var(--accent);
        }

        .footer-links i {
            margin-right: 8px;
            color: var(--accent);
        }

        .social-links {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }

        .social-links a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            color: white;
            transition: var(--transition);
        }

        .social-links a:hover {
            background-color: var(--accent);
            transform: translateY(-5px);
        }

        .copyright {
            text-align: center;
            padding-top: 2rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            font-size: 0.9rem;
        }

        /* SCROLL TO TOP BUTTON */
        .scroll-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            color: var(--white);
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            opacity: 0;
            visibility: hidden;
            transition: var(--transition);
            box-shadow: 0 5px 20px rgba(66, 71, 105, 0.3);
            z-index: 999;
        }

        .scroll-to-top.show {
            opacity: 1;
            visibility: visible;
        }

        .scroll-to-top:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(255, 177, 122, 0.4);
        }

        /* PAGE LOADER */
        .page-loader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--navy);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            transition: opacity 0.5s ease, visibility 0.5s ease;
        }

        .page-loader.hidden {
            opacity: 0;
            visibility: hidden;
        }

        .loader-spinner {
            width: 60px;
            height: 60px;
            border: 5px solid rgba(255, 255, 255, 0.1);
            border-top-color: var(--accent);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

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

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% {
                transform: translateY(0) translateX(-50%);
            }
            40% {
                transform: translateY(-20px) translateX(-50%);
            }
            60% {
                transform: translateY(-10px) translateX(-50%);
            }
        }

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

        @keyframes pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(66, 71, 105, 0.4);
            }
            70% {
                box-shadow: 0 0 0 10px rgba(66, 71, 105, 0);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(66, 71, 105, 0);
            }
        }

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

        @keyframes shine {
            0% {
                background-position: -100% 0;
            }
            100% {
                background-position: 200% 0;
            }
        }

        .reveal {
            opacity: 0;
            transform: translateY(50px);
            transition: all 0.8s ease;
        }

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

        .shimmer {
            position: relative;
            overflow: hidden;
        }

        .shimmer::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(
                90deg, 
                transparent, 
                rgba(255, 255, 255, 0.2), 
                transparent
            );
            background-size: 200% 100%;
            animation: shine 2s infinite;
            pointer-events: none;
        }

        /* SKILL BARS ANIMATION */
        .skill-bar {
            position: relative;
            overflow: hidden;
        }

        .skill-bar::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            width: 100%;
            background: linear-gradient(
                90deg,
                transparent,
                rgba(255, 255, 255, 0.4),
                transparent
            );
            transform: translateX(-100%);
        }

        .skill-bar.animated::after {
            animation: shimmer 2s infinite;
        }

        @keyframes shimmer {
            100% {
                transform: translateX(100%);
            }
        }

        /* NOTIFICATION STYLES */
        .notification {
            position: fixed;
            top: 20px;
            right: 20px;
            background: var(--white);
            padding: 1.2rem 1.5rem;
            border-radius: var(--border-radius);
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
            z-index: 10000;
            transform: translateX(400px);
            transition: transform 0.3s ease, opacity 0.3s ease;
            opacity: 0;
            min-width: 300px;
            max-width: 450px;
        }

        .notification.show {
            transform: translateX(0);
            opacity: 1;
        }

        .notification-content {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .notification-content i {
            font-size: 1.5rem;
            flex-shrink: 0;
        }

        .notification-content span {
            color: var(--text);
            font-size: 0.95rem;
            line-height: 1.5;
        }

        /* Success Notification */
        .notification-success {
            border-left: 5px solid #27ae60;
        }

        .notification-success i {
            color: #27ae60;
        }

        /* Error Notification */
        .notification-error {
            border-left: 5px solid #e74c3c;
        }

        .notification-error i {
            color: #e74c3c;
        }

        /* Dark mode notifications */
        [data-theme="dark"] .notification {
            background: #1a1d2e;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        }

        [data-theme="dark"] .notification-content span {
            color: #e0e2e8;
        }

        /* RESPONSIVE */
        @media (max-width: 992px) {
            .about-content {
                grid-template-columns: 1fr;
                gap: 2rem;
            }

            .skills-container {
                grid-template-columns: 1fr 1fr;
            }

            .timeline::after {
                left: 31px;
            }

            .timeline-item {
                width: 100%;
                padding-left: 70px;
                padding-right: 25px;
            }

            .timeline-item::after {
                left: 15px;
            }

            .right {
                left: 0;
            }

            /* Improved touch targets for tablets */
            .btn {
                min-height: 44px;
                padding: 1rem 1.75rem;
            }

            .nav-link {
                padding: 0.75rem;
            }
        }

        @media (max-width: 768px) {
            /* Notification responsive */
            .notification {
                top: 10px;
                right: 10px;
                left: 10px;
                min-width: auto;
                max-width: none;
                padding: 1rem;
            }

            .notification-content {
                gap: 0.75rem;
            }

            .notification-content i {
                font-size: 1.3rem;
            }

            .notification-content span {
                font-size: 0.9rem;
            }

            /* Better viewport handling */
            .hero {
                min-height: 100vh;
                min-height: 100dvh; /* Dynamic viewport height for mobile */
            }

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

            .hero-subtitle {
                font-size: 1.2rem;
            }

            .section-title {
                font-size: 1.8rem;
            }

            .skills-container {
                grid-template-columns: 1fr;
            }

            .hamburger {
                display: block;
            }

            .theme-toggle {
                margin-left: 0;
                margin-right: 1rem;
            }

            .nav-menu {
                position: fixed;
                left: -100%;
                top: 70px;
                gap: 0;
                flex-direction: column;
                background-color: var(--card-bg);
                width: 100%;
                text-align: center;
                transition: 0.3s;
                box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
                padding: 2rem 0;
                z-index: 999;
            }

            .nav-menu.active {
                left: 0;
            }

            .nav-item {
                margin: 16px 0;
            }

            .nav-link {
                color: var(--text);
                /* Larger touch targets on mobile */
                display: block;
                padding: 1rem;
                min-height: 44px;
            }

            /* Improved touch targets for mobile */
            .social-links a {
                width: 48px;
                height: 48px;
                font-size: 1.2rem;
            }

            .scroll-to-top {
                width: 48px;
                height: 48px;
                bottom: 20px;
                right: 20px;
            }

            .contact-icon {
                width: 60px;
                height: 60px;
                font-size: 1.5rem;
            }
        }

        @media (max-width: 576px) {
            /* Smaller text on very small screens */
            .hero-title {
                font-size: 2rem;
            }

            .hero-subtitle {
                font-size: 1rem;
            }

            .hero-text {
                font-size: 0.95rem;
            }

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

            .hero-btns .btn {
                width: 100%;
                text-align: center;
                min-height: 48px;
            }

            .personal-info {
                grid-template-columns: 1fr;
            }

            /* Better spacing on small screens */
            section {
                padding: 60px 0;
            }

            .container {
                padding: 0 1rem;
            }

            /* Improved form on mobile */
            .form-control {
                font-size: 16px; /* Prevents zoom on iOS */
                padding: 15px;
            }

            /* Larger project cards on mobile */
            .project-card {
                padding: 1.5rem;
            }
        }
