@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@100..900&display=swap');

:root{
    /* Colors */
    --bg-primary: #0f1211;
    --bg-secondary: #151a19;
    --bg-transparent: rgba(15, 18, 17, 0.97);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);

    --accent-primary: #f72323;
    --accent-light: #ff3333;
    --accent-dark: #e52020;


    --border-light: rgba(255, 255, 255, 0.05);
    --border-medium: rgba(255, 255, 255, 0.2);
    --border-hover: rgba(255, 255, 255, 0.4);
    --overlay-light: rgba(255, 255, 255, 0.1);
    
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.2);

    --shadow-accent: 0 4px 15px rgba(247, 35, 35, 0.3);
    --shadow-accent-hover: 0 6px 20px rgba(247, 35, 35, 0.4);
    
    /* Typography */
    --font-family: "Geist Mono", monospace;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    
    /* Spacing */
    --space-xs: 5px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 20px;
    --space-xl: 25px;
    --space-xxl: 50px;
    --space-xxxl: 100px;
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Layout */
    --container-max: 1500px;
    --header-height: 50px;

    /* Dark mode colors (default) */
    --bg-primary: #0f1211;
    --bg-secondary: #151a19;
    --bg-transparent: rgba(15, 18, 17, 0.97);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --border-light: rgba(255, 255, 255, 0.05);
    --border-medium: rgba(255, 255, 255, 0.2);
    --border-hover: rgba(255, 255, 255, 0.4);
    --overlay-light: rgba(255, 255, 255, 0.1);
    --chart-gray: #4d4d4d;
}

/* Light mode colors */
body.light-mode {
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-transparent: rgba(248, 249, 250, 0.97);
    --text-primary: #212529;
    --text-secondary: rgba(33, 37, 41, 0.8);
    --border-light: rgba(0, 0, 0, 0.05);
    --border-medium: rgba(0, 0, 0, 0.1);
    --border-hover: rgba(0, 0, 0, 0.2);
    --overlay-light: rgba(0, 0, 0, 0.05);
    --chart-gray: #e6e6e6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
}

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

a {
    text-decoration: none;
}

/* Improved scrolling experience */
html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) var(--bg-secondary);
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-light);
}

/* Enhanced header scroll behavior */
.header {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    padding: var(--space-md) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all var(--transition-base);
    border-bottom: 1px solid var(--border-light);
    backdrop-filter: blur(5px);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
    background-color: var(--bg-transparent);
    padding: var(--space-sm) 0;
}

/* Light mode header adjustments - Removed */

/* Container styles */
.header-container,
.hero-container,
.insights-container,
.skills-container,
.work-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    width: 100%;
}

/* Header container specific */
.header-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
}

/* Hero container specific */
.hero-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xxl);
}

/* Insights container specific */
.insights-container {
    display: flex;
    flex-direction: column;
    text-align: start;
}

/* Work container specific */
.work-container {
    display: flex;
    flex-direction: column;
}

/* Logo styles */
.logo a {
    color: var(--text-primary);
    font-size: 26px;
    font-weight: var(--fw-bold);
    display: flex;
    align-items: center;
    letter-spacing: 0.5px;
    -webkit-text-fill-color: var(--text-primary);
}

.logo i {
    margin-right: 10px;
    color: var(--accent-primary);
    font-size: 28px;
}

/* Navigation styles */
.main-nav {
    margin-left: 50px;
    margin-right: auto;
    flex-grow: 1;
}

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

.nav-links li {
    margin: 0 15px;
    position: relative;
}

.nav-links a {
    color: var(--text-primary);
    font-size: 16px;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-primary);
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::before,
.nav-links a.active::before {
    width: 100%;
}

/* Auth buttons styles */
.auth-buttons {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.sign-in {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
    font-size: 16px;
    font-weight: var(--fw-medium);
    cursor: pointer;
    padding: 10px 15px;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.sign-in:hover {
    background-color: var(--overlay-light);
    border-color: var(--border-hover);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    z-index: 101;
    transition: transform 0.3s ease;
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px; /* Start off-screen */
    bottom: 0;
    width: 280px;
    background-color: var(--bg-primary);
    backdrop-filter: blur(10px);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    z-index: 99;
    border-left: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    transition: right var(--transition-base);
    overflow-y: auto;
}

/* Light mode mobile menu adjustments */
body.light-mode .mobile-menu {
    background-color: var(--bg-primary);
    border-left: 1px solid var(--border-light);
}

body.light-mode .mobile-menu-btn span {
    background-color: var(--text-primary);
}

body.light-mode .mobile-overlay {
    background-color: rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu .nav-links {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 60px; /* Space for header */
}

.mobile-menu .nav-links li {
    margin: 15px 0;
    width: 100%;
}

.mobile-menu .nav-links a {
    font-size: 18px;
    display: block;
    padding: 10px 0;
}

/* Mobile overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 98;
    display: none;
}

.mobile-overlay.active {
    display: block;
}

/* Hero Section Styles */
.hero {
    min-height: calc(100vh - var(--header-height) - 100px);
    padding: var(--space-xxxl) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    background-attachment: fixed;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(top right, var(--accent-primary) 30%, transparent 100%);
    opacity: 0.05;
    pointer-events: none;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

/* Enhanced chart animations */
@keyframes barRise {
    0% { height: 0; opacity: 0; }
    40% { opacity: 1; }
    100% { height: var(--height); opacity: 1; }
}

@keyframes columnRise {
    0% { height: 0; opacity: 0; }
    40% { opacity: 1; }
    100% { height: var(--height); opacity: 1; }
}

@keyframes donutReveal {
    0% { transform: scale(0.7); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes lineDrawIn {
    0% { stroke-dashoffset: 200; opacity: 0; }
    40% { opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 1; }
}

/* Hero section text animations */
@keyframes fadeInUp {
    0% { transform: translateY(30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes fadeInRight {
    0% { transform: translateX(-30px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes fadeInLeft {
    0% { transform: translateX(30px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

.hero-title {
    font-size: 50px;
    font-weight: var(--fw-bold);
    line-height: 1.1;
    margin-bottom: var(--space-xl);
    background-image: linear-gradient(90deg, var(--text-primary) 50%, var(--accent-primary));
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    position: relative;
    overflow: hidden;
}

.hero-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), transparent);
    transform: translateX(-100%);
    animation: textReveal 1.5s ease forwards;
}

@keyframes textReveal {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.hero-text {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 540px;
    background-image: linear-gradient(90deg, var(--text-primary) 50%, var(--accent-primary));
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.hero-buttons {
    display: flex;
    margin-bottom: var(--space-xl);
    gap: var(--space-md);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-dark) 100%);
    color: var(--bg-primary);
    border: none;
    font-size: 16px;
    font-weight: var(--fw-semibold);
    cursor: pointer;
    padding: 12px 26px;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    letter-spacing: 0.3px;
    box-shadow: var(--shadow-accent);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 1;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary span {
    position: relative;
    z-index: 2;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-primary) 100%);
    box-shadow: var(--shadow-accent-hover);
}

.btn-secondary {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    font-size: 16px;
    font-weight: var(--fw-medium);
    cursor: pointer;
    padding: 12px 26px;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-secondary::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: left 0.8s ease;
}

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

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--border-medium);
}

.client-logos {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.client-logo {
    height: 24px;
    font-size: 14px;
    font-weight: var(--fw-bold);
    letter-spacing: 1px;
    color: var(--text-primary);
    opacity: 0.7;
    text-transform: uppercase;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.client-logo::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    opacity: 0;
    transform: rotate(30deg);
    background: rgba(255, 255, 255, 0.13);
    background: linear-gradient(
        to right, 
        rgba(255, 255, 255, 0.13) 0%,
        rgba(255, 255, 255, 0.13) 77%,
        rgba(255, 255, 255, 0.5) 92%,
        rgba(255, 255, 255, 0.0) 100%
    );
}

.client-logo:hover::after {
    opacity: 1;
    animation: shine 1.5s ease;
}

@keyframes shine {
    to {
        left: 130%;
    }
}

.client-logo:nth-child(even) {
    font-style: italic;
    font-weight: var(--fw-medium);
}

.client-logo:hover {
    transform: translateY(-8px) scale(1.05);
    background-color: var(--accent-primary);
    color: white;
}

/* Dashboard Styles */
.hero-dashboard {
    flex: 1;
    position: relative;
    max-width: 600px;
    opacity: 0;
    animation: fadeInLeft 1s ease-out 0.4s forwards;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: var(--space-md);
    width: 100%;
}

.chart {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

/* Bar Chart */
.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding-bottom: var(--space-xs);
}

.bar {
    width: 15%;
    height: 0%;
    background-color: var(--chart-gray);
    border-radius: var(--radius-sm);
    opacity: 0;
    transform-origin: bottom;
}

.bar.animated {
    animation: barRise 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.bar-accent {
    background-color: var(--accent-primary);
}

/* Donut Chart */
.donut {
    position: relative;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: conic-gradient(
        var(--accent-primary) 0% 65%, 
        var(--chart-gray) 65% 100%
    );
    opacity: 0;
    transform: scale(0.7);
}

.donut.animated {
    animation: donutReveal 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.donut::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background-color: var(--bg-secondary);
    border-radius: 50%;
}

/* Line Chart */
.line-chart {
    width: 100%;
    height: 100%;
}

.line {
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    opacity: 0;
}

.line.animated {
    animation: lineDrawIn 2s ease forwards;
}

.line-accent {
    stroke: var(--accent-primary);
}

.line-light {
    stroke: rgba(255, 255, 255, 0.5);
}

/* Column Chart */
.chart-columns {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    width: 100%;
    height: 100%;
    padding-bottom: var(--space-xs);
}

.column {
    width: 25%;
    height: 0%;
    background-color: var(--chart-gray);
    border-radius: var(--radius-sm);
    opacity: 0;
    transform-origin: bottom;
}

.column.animated {
    animation: columnRise 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.column-accent {
    background-color: var(--accent-primary);
}

/* Responsive styles */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 48px;
    }
    
    .hero-container {
        flex-direction: column;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .dashboard-grid {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: var(--space-md);
        min-height: auto;
    }
    
    .feature-card:nth-child(1),
    .feature-card:nth-child(2),
    .feature-card:nth-child(3),
    .feature-card:nth-child(4) {
        grid-column: 1;
        grid-row: auto;
        grid-row: span 1;
    }
    
    .section-title {
        font-size: 36px;
        text-align: left;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .project-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .header-container,
    .hero-container,
    .insights-container,
    .work-container {
        padding: 0 var(--space-md);
    }
    
    .main-nav {
        display: none;
    }
    
    .auth-buttons {
        display: flex;
        margin-right: var(--space-md);
    }
    
    .sign-in {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .sign-in i {
        margin-right: 4px;
        font-size: 12px;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding: var(--space-xl) 0;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-text {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons button {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .client-logos {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-md);
        margin-top: 30px;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
        transform: scale(1);
        margin: 0 auto;
    }
    
    .mobile-menu .auth-buttons {
        display: none;
    }
    
    .insights-section,
    .work-section {
        padding: var(--space-xl) 0;
    }
    
    .section-subtitle {
        font-size: 16px;
        margin-bottom: var(--space-lg);
    }
    
    .project-image {
        height: 250px;
    }
    
    .feature-card {
        padding: var(--space-lg);
    }
    
    .feature-icon {
        font-size: 28px;
        width: 60px;
        height: 60px;
    }
    
    .feature-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .logo a {
        font-size: 20px;
    }
    
    .logo i {
        font-size: 22px;
    }
    
    .header {
        padding: 12px 0;
    }
    
    .sign-in {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .mobile-menu {
        width: 250px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .feature-card {
        padding: var(--space-md);
    }
    
    .feature-icon {
        font-size: 24px;
        width: 50px;
        height: 50px;
        margin-bottom: var(--space-sm);
    }
    
    .feature-title {
        font-size: 18px;
        margin-bottom: var(--space-sm);
    }
    
    .feature-text {
        font-size: 14px;
    }
    
    .project-image {
        height: 200px;
    }
    
    .project-info {
        padding: var(--space-md);
    }
    
    .project-title {
        font-size: 18px;
    }
    
    .project-category {
        font-size: 13px;
    }
}

/* Insights Section Styles */
.insights-section {
    display: flex;
    align-items: start;
    flex-direction: column;
    padding: var(--space-xxxl) 0;
    color: var(--text-primary);
}

.section-title {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 42px;
    font-weight: var(--fw-bold);
    text-align: left;
    margin-bottom: var(--space-xxl);
    background-image: linear-gradient(90deg, var(--text-primary) 50%, var(--accent-primary));
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    align-self: flex-start;
    position: relative;
}

.section-title::after {
    content: '|';
    position: absolute;
    right: -10px;
    opacity: 0;
    animation: blink 1s infinite;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: var(--space-md);
    min-height: 200px;
}

/* Apply specific grid positioning to each feature card */
.feature-card:nth-child(1) {
    grid-row: span 3 / span 3;
    grid-column-start: 1;
    grid-row-start: 1;
}

.feature-card:nth-child(2) {
    grid-row: span 2 / span 2;
    grid-column-start: 1;
    grid-row-start: 4;
}

.feature-card:nth-child(3) {
    grid-row: span 2 / span 2;
    grid-column-start: 2;
    grid-row-start: 1;
}

.feature-card:nth-child(4) {
    grid-row: span 3 / span 3;
    grid-column-start: 2;
    grid-row-start: 3;
}

.feature-card {
    background-color: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-base);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    filter: blur(20px);
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    animation: gradientBorder 3s linear infinite;
    background-size: 300% 300%;
    background-image: linear-gradient(
        135deg,
        var(--accent-primary) 0%,
        var(--accent-light) 25%,
        var(--accent-primary) 50%,
        var(--accent-dark) 75%,
        var(--accent-primary) 100%
    );
}

.feature-card:hover::before {
    opacity: 0.15;
}

.feature-icon {
    font-size: 32px;
    color: var(--accent-primary);
    margin-bottom: var(--space-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 1px solid var(--border-medium);
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, color 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(10deg);
    color: var(--accent-light);
}

.feature-content {
    position: relative;
    z-index: 1;
}

.feature-title {
    font-size: 24px;
    font-weight: var(--fw-semibold);
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.feature-text {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

/* Responsive styles for insights section */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: var(--space-md);
        min-height: auto;
    }
    
    .feature-card:nth-child(1),
    .feature-card:nth-child(2),
    .feature-card:nth-child(3),
    .feature-card:nth-child(4) {
        grid-column: 1;
        grid-row: auto;
        grid-row: span 1;
    }
    
    .section-title {
        font-size: 36px;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .insights-section {
        padding: var(--space-xl) 0;
    }
    
    .section-title {
        font-size: 32px;
        margin-bottom: var(--space-xl);
        text-align: left;
    }
    
    .feature-card {
        padding: var(--space-lg);
    }
    
    .feature-icon {
        font-size: 28px;
        width: 60px;
        height: 60px;
    }
    
    .feature-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 28px;
    }
    
    .feature-card {
        padding: var(--space-md);
    }
    
    .feature-icon {
        font-size: 24px;
        width: 50px;
        height: 50px;
        margin-bottom: var(--space-sm);
    }
    
    .feature-title {
        font-size: 18px;
        margin-bottom: var(--space-sm);
    }
    
    .feature-text {
        font-size: 14px;
    }
}

/* Our Work Section Styles */
.work-section {
    padding: var(--space-xxxl) 0;
    background-color: var(--bg-primary);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 700px;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-xxl);
}

.project-card {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.project-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.project-card:hover .project-image {
    transform: translateZ(20px);
}

.project-card:hover .project-info {
    transform: translateZ(10px);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

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

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.project-links {
    display: flex;
    gap: var(--space-md);
}

.project-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all var(--transition-base);
    transform: translateY(20px);
    opacity: 0;
    position: relative;
    overflow: hidden;
}

.project-card:hover .project-link {
    transform: translateY(0);
    opacity: 1;
}

.project-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.project-link:hover::before {
    opacity: 1;
    transform: scale(1.5);
}

.project-link:hover {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
}

.project-info {
    padding: var(--space-lg);
    transform: translateZ(0);
    transition: transform 0.4s ease;
}

.project-title {
    font-size: 20px;
    font-weight: var(--fw-semibold);
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.project-category {
    font-size: 14px;
    color: var(--text-secondary);
}

.view-all-container {
    text-align: center;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background-color: transparent;
    border: 1px solid var(--border-medium);
    color: var(--text-primary);
    font-size: 16px;
    font-weight: var(--fw-medium);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.view-all-btn i {
    transition: transform var(--transition-base);
}

.view-all-btn:hover {
    background-color: var(--overlay-light);
    border-color: var(--accent-primary);
}

.view-all-btn:hover i {
    transform: translateX(5px);
}

/* Responsive styles for work section */
@media (max-width: 992px) {
    .work-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .project-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .work-section {
        padding: var(--space-xl) 0;
    }
    
    .section-subtitle {
        font-size: 16px;
        margin-bottom: var(--space-lg);
    }
    
    .project-image {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .project-image {
        height: 200px;
    }
    
    .project-info {
        padding: var(--space-md);
    }
    
    .project-title {
        font-size: 18px;
    }
    
    .project-category {
        font-size: 13px;
    }
}

/* Remove any remaining references to the old container class */
.container {
    display: none; /* This ensures any remaining references don't affect layout */
}

/* Scroll reveal animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Hero Visual Styles */
.hero-visual {
    flex: 1;
    position: relative;
    max-width: 600px;
    opacity: 0;
    animation: fadeInLeft 1s ease-out 0.4s forwards;
}

.hero-image-container {
    position: relative;
    width: 100%;
    min-height: 450px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--bg-secondary) 0%, var(--bg-primary) 70%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    z-index: 1;
}

.hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-light));
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 180px;
    height: 180px;
    top: 20%;
    left: 20%;
    animation-delay: 0s;
    filter: blur(20px);
}

.shape-2 {
    width: 120px;
    height: 120px;
    bottom: 25%;
    right: 15%;
    animation-delay: 2s;
    filter: blur(15px);
}

.shape-3 {
    width: 90px;
    height: 90px;
    bottom: 15%;
    left: 30%;
    animation-delay: 4s;
    filter: blur(10px);
}

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

/* Circular Orbit Layout */
.tech-orbit {
    position: relative;
    width: 400px;
    height: 300px;
    z-index: 3;
}

.orbit-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: rotateOrbit 60s linear infinite;
}

.orbit-circle-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    border: 1px dashed rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

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

.tech-item {
    position: absolute;
    width: 60px;
    height: 60px;
    background-color: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-medium);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    animation: techItemAppear 0.5s ease-out forwards;
    animation-delay: calc(var(--i) * 0.2s);
    opacity: 0;
    transform: translateY(20px);
    
    /* Position in orbit */
    top: 50%;
    left: 50%;
    margin-top: -30px; /* Half of height */
    margin-left: -30px; /* Half of width */
    transform-origin: 150px 30px; /* Half of orbit width + half of item height */
    transform: rotate(var(--rotate)) translateX(120px) rotate(calc(-1 * var(--rotate)));
    position: relative;
}

.tech-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: width 0.5s ease, height 0.5s ease, opacity 0.5s ease;
    z-index: -1;
}

.tech-item:hover::after {
    width: 80px;
    height: 80px;
    opacity: 0.3;
}

.tech-item i {
    font-size: 28px;
    color: var(--accent-primary);
    transition: all var(--transition-base);
}

.tech-item:hover i {
    color: var(--accent-light);
}

@keyframes techItemAppear {
    0% {
        opacity: 0;
        transform: rotate(var(--rotate)) translateX(120px) rotate(calc(-1 * var(--rotate))) scale(0.5);
    }
    100% {
        opacity: 1;
        transform: rotate(var(--rotate)) translateX(120px) rotate(calc(-1 * var(--rotate)));
    }
}

/* Light mode adjustments for hero visual */
body.light-mode .hero-backdrop {
    background: radial-gradient(circle at center, var(--bg-secondary) 0%, var(--bg-primary) 70%);
}

body.light-mode .orbit-circle {
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .orbit-circle-inner {
    border-color: rgba(0, 0, 0, 0.05);
}

body.light-mode .tech-item {
    background-color: var(--bg-secondary);
    border-color: var(--border-medium);
}

/* Responsive styles for hero visual */
@media (max-width: 1024px) {
    .hero-image-container {
        height: 400px;
    }
    
    .tech-orbit {
        /* width: 280px; */
        height: 280px;
    }
    
    .tech-item {
        width: 55px;
        height: 55px;
        margin-top: -27.5px;
        margin-left: -27.5px;
        transform-origin: 140px 27.5px;
        transform: rotate(var(--rotate)) translateX(110px) rotate(calc(-1 * var(--rotate)));
    }
    
    .tech-item:hover {
        transform: rotate(var(--rotate)) translateX(110px) rotate(calc(-1 * var(--rotate))) scale(1.15);
    }
    
    @keyframes techItemAppear {
        0% {
            opacity: 0;
            transform: rotate(var(--rotate)) translateX(110px) rotate(calc(-1 * var(--rotate))) scale(0.5);
        }
        100% {
            opacity: 1;
            transform: rotate(var(--rotate)) translateX(110px) rotate(calc(-1 * var(--rotate)));
        }
    }
    
    .tech-item i {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .hero-image-container {
        height: 350px;
    }
    
    .tech-orbit {
        /* width: 240px; */
        height: 240px;
    }
    
    .tech-item {
        width: 48px;
        height: 48px;
        margin-top: -24px;
        margin-left: -24px;
        transform-origin: 120px 24px;
        transform: rotate(var(--rotate)) translateX(95px) rotate(calc(-1 * var(--rotate)));
    }
    
    .tech-item:hover {
        transform: rotate(var(--rotate)) translateX(95px) rotate(calc(-1 * var(--rotate))) scale(1.15);
    }
    
    @keyframes techItemAppear {
        0% {
            opacity: 0;
            transform: rotate(var(--rotate)) translateX(95px) rotate(calc(-1 * var(--rotate))) scale(0.5);
        }
        100% {
            opacity: 1;
            transform: rotate(var(--rotate)) translateX(95px) rotate(calc(-1 * var(--rotate)));
        }
    }
    
    .tech-item i {
        font-size: 22px;
    }
    
    .shape-1 {
        width: 150px;
        height: 150px;
    }
    
    .shape-2 {
        width: 100px;
        height: 100px;
    }
    
    .shape-3 {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .hero-image-container {
        height: 300px;
    }
    
    .tech-orbit {
        height: 200px;
    }
    
    .tech-item {
        width: 40px;
        height: 40px;
        margin-top: -20px;
        margin-left: -20px;
        transform-origin: 100px 20px;
        transform: rotate(var(--rotate)) translateX(80px) rotate(calc(-1 * var(--rotate)));
    }
    
    .tech-item:hover {
        transform: rotate(var(--rotate)) translateX(80px) rotate(calc(-1 * var(--rotate))) scale(1.15);
    }
    
    @keyframes techItemAppear {
        0% {
            opacity: 0;
            transform: rotate(var(--rotate)) translateX(80px) rotate(calc(-1 * var(--rotate))) scale(0.5);
        }
        100% {
            opacity: 1;
            transform: rotate(var(--rotate)) translateX(80px) rotate(calc(-1 * var(--rotate)));
        }
    }
    
    .tech-item i {
        font-size: 18px;
    }
}

/* Skills Section Styles */
.skills-section {
    padding: var(--space-xxxl) 0;
    background-color: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.skills-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--accent-primary-rgb, 247, 35, 35), 0.03) 0%, transparent 50%, rgba(var(--accent-primary-rgb, 247, 35, 35), 0.03) 100%);
    animation: backgroundMove 15s ease infinite alternate;
    pointer-events: none;
}

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

.skills-container {
    display: flex;
    flex-direction: column;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.skill-category {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.category-title {
    font-size: 20px;
    font-weight: var(--fw-semibold);
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    position: relative;
    padding-bottom: var(--space-xs);
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-primary);
    border-radius: var(--radius-sm);
}

.skill-bars {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.skill-item {
    width: 100%;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-xs);
}

.skill-name {
    font-size: 16px;
    font-weight: var(--fw-medium);
    color: var(--text-primary);
}

.skill-percentage {
    font-size: 14px;
    color: var(--text-secondary);
}

.skill-progress {
    width: 100%;
    height: 8px;
    background-color: var(--bg-primary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.skill-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-light));
    border-radius: var(--radius-full);
    position: relative;
    width: 0;
    transition: width 1.2s ease-out;
    overflow: hidden;
}

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

.skill-category:hover .skill-progress-bar::after {
    left: 100%;
}

.skill-progress-bar.animate {
    width: var(--width, 0%);
}

@keyframes progressAnimation {
    from {
        width: 0;
    }
    to {
        width: var(--width, 0%);
    }
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.skill-tag {
    padding: var(--space-xs) var(--space-sm);
    background-color: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: 14px;
    color: var(--text-primary);
    transition: all var(--transition-base);
}

.skill-tag:hover {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
}

/* Responsive styles for skills section */
@media (max-width: 992px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .skills-section {
        padding: var(--space-xl) 0;
    }
    
    .category-title {
        font-size: 18px;
    }
    
    .skill-name {
        font-size: 15px;
    }
    
    .skill-percentage {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .skill-progress {
        height: 6px;
    }
    
    .skill-tag {
        font-size: 12px;
    }
    
    .category-title {
        font-size: 16px;
    }
}

/* Contact Section Styles */
.contact-section {
    padding: var(--space-xxxl) 0;
    background-color: var(--bg-primary);
}

.contact-container {
    display: flex;
    flex-direction: column;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-medium);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--overlay-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 20px;
}

.contact-details h3 {
    font-size: 18px;
    font-weight: var(--fw-semibold);
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.contact-details a,
.contact-details p {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-base);
}

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

.contact-social {
    margin-top: var(--space-md);
}

.contact-social h3 {
    font-size: 18px;
    font-weight: var(--fw-semibold);
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.social-links {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 18px;
    transition: all var(--transition-base);
    transition: transform 0.3s ease, background-color 0.3s ease;
    overflow: hidden;
}

.social-link:hover {
    transform: translateY(-5px) rotate(5deg);
}

.social-link::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
    transition: top 0.4s ease;
}

.social-link:hover::before {
    top: 0;
}

.contact-form-container {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
}

.contact-form-container::before{
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-light), var(--accent-primary));
    border-radius: calc(var(--radius-lg) + 2px);
    z-index: -1;
    background-size: 300% 300%;
    animation: gradientBorder 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-form-container:hover::before {
    opacity: 1;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    position: relative;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-group label {
    font-size: 16px;
    font-weight: var(--fw-medium);
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-medium);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 16px;
    transition: all var(--transition-base);
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem;
    cursor: pointer;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-xs);
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    appearance: none;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    background-color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-base);
}

.checkbox-group input[type="checkbox"]:checked {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.checkbox-group input[type="checkbox"]:checked::before {
    content: '\2713';
    color: var(--bg-primary);
    font-size: 12px;
    font-weight: bold;
}

.checkbox-group .checkbox-label {
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    border-color: var(--accent-primary);
}

  .form-group input:focus,
  .form-group textarea:focus,
  .form-group select:focus {
      outline: none;
      border-color: var(--accent-primary);
      box-shadow: 0 0 0 3px rgba(var(--accent-primary-rgb, 247, 35, 35), 0.2);
  }

  .form-group input::placeholder,
  .form-group textarea::placeholder {
      color: var(--text-tertiary);
  }

  .form-group input.error,
  .form-group textarea.error {
      border-color: #ff3860;
      box-shadow: 0 0 0 2px rgba(255, 56, 96, 0.2);
  }

  .form-group input.error::placeholder,
  .form-group textarea.error::placeholder {
      color: rgba(255, 56, 96, 0.5);
  }

.form-row {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: var(--space-md);
     width: 100%;
}
  
@media (max-width: 576px) {
     .form-row {
         grid-template-columns: 1fr;
     }
}

/* Form message styles */
.form-message {
    margin-top: var(--space-md);
    margin-bottom: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: var(--fw-medium);
    animation: fadeIn 0.3s ease-in-out;
}

.form-message.success {
    background-color: rgba(46, 204, 113, 0.1);
    border: 1px solid #2ecc71;
    color: #2ecc71;
}

.form-message.error {
    background-color: rgba(231, 76, 60, 0.1);
    border: 1px solid #e74c3c;
    color: #e74c3c;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Footer Styles */
.footer {
    background-color: var(--bg-secondary);
    padding-top: var(--space-xxl);
    border-top: 1px solid var(--border-light);
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--border-light);
}

.footer-logo a {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    margin-bottom: var(--space-md);
    transition: transform 0.3s ease;
}

.footer-logo i {
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    width: auto;
    font-size: 24px;
    color: var(--text-primary);
}

.footer-logo span {
    font-size: 24px;
    font-weight: var(--fw-bold);
    color: var(--text-primary);
}

.footer-logo p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    max-width: 300px;
}

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

.footer-logo i {
    transition: transform 0.4s ease;
}

.footer-logo a:hover i {
    transform: rotate(360deg);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.footer-link-group h3 {
    font-size: 18px;
    font-weight: var(--fw-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.footer-link-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-link-group ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-base);
    font-size: 15px;
}

.footer-link-group ul li a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) 0;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

/* Responsive styles for contact and footer */
@media (max-width: 992px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .footer-logo p {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: var(--space-xl) 0;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xl);
    }
    
    .footer-link-group:last-child {
        grid-column: span 2;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

@media (max-width: 576px) {
    .contact-card {
        flex-direction: column;
        text-align: center;
        padding: var(--space-md) var(--space-sm);
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .footer-link-group:last-child {
        grid-column: auto;
    }
    
    .contact-form-container {
        padding: var(--space-lg);
    }
}

/* Header right section */
.header-right {
    display: flex;
    align-items: center;
    margin-left: auto;
}

/* Mobile layout adjustments */
@media (max-width: 768px) {
    .header-container {
        justify-content: space-between;
    }
    
    .header-right {
        order: 2;
        margin-left: 0;
    }
    
    .mobile-menu-btn {
        order: 3;
        margin-left: var(--space-md);
    }
}

@media (max-width: 480px) {
    .mobile-menu-btn {
        margin-right: 10px;
    }
}

/* Theme toggle button */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.theme-toggle:hover {
    transform: rotate(15deg);
}

.theme-toggle i {
    font-size: 18px;
    transition: all var(--transition-base);
}

.theme-toggle .fa-sun {
    position: absolute;
    opacity: 0;
    transform: translateY(20px);
}

.theme-toggle .fa-moon {
    opacity: 1;
    transform: translateY(0);
}

body.light-mode .theme-toggle .fa-sun {
    opacity: 1;
    transform: translateY(0);
}

body.light-mode .theme-toggle .fa-moon {
    opacity: 0;
    transform: translateY(-20px);
}

@media (max-width: 768px) {
    .theme-toggle {
        width: 36px;
        height: 36px;
        /* margin-right: 10px; */
    }
    
    .theme-toggle i {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .theme-toggle {
        width: 32px;
        height: 32px;
    }
    
    .theme-toggle i {
        font-size: 14px;
    }
}

/* Floating animation for shapes */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

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

.shape-1 {
    animation-delay: 0s;
}

.shape-2 {
    animation-delay: 2s;
}

.shape-3 {
    animation-delay: 4s;
}

/* Pulse effect for the theme toggle */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--accent-primary-rgb, 247, 35, 35), 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(var(--accent-primary-rgb, 247, 35, 35), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--accent-primary-rgb, 247, 35, 35), 0);
    }
}

.theme-toggle:hover {
    animation: pulse 1.5s infinite;
}

/* Glowing effect for tech items */
.tech-item {
    position: relative;
}

.tech-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: width 0.5s ease, height 0.5s ease, opacity 0.5s ease;
    z-index: -1;
}

.tech-item:hover::after {
    width: 80px;
    height: 80px;
    opacity: 0.3;
}

/* 3D tilt effect for project cards */
.project-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.project-card:hover .project-image {
    transform: translateZ(20px);
}

.project-info {
    transform: translateZ(0);
    transition: transform 0.4s ease;
}

.project-card:hover .project-info {
    transform: translateZ(10px);
}

/* Magnetic effect for social links */
.social-link {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Animated background for skills section */
.skills-section {
    position: relative;
    overflow: hidden;
}

.skills-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--accent-primary-rgb, 247, 35, 35), 0.03) 0%, transparent 50%, rgba(var(--accent-primary-rgb, 247, 35, 35), 0.03) 100%);
    animation: backgroundMove 15s ease infinite alternate;
    pointer-events: none;
}

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

/* Glitch effect for logo on hover */
.logo a:hover span {
    position: relative;
}

.logo a:hover span::before,
.logo a:hover span::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.logo a:hover span::before {
    color: #ff00ff;
    animation: glitch 0.4s linear infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    transform: translate(-2px, -2px);
}

.logo a:hover span::after {
    color: #00ffff;
    animation: glitch 0.4s linear infinite reverse;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
    transform: translate(2px, 2px);
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
    }
}

/* Shiny effect for client logos */
.client-logo {
    position: relative;
    overflow: hidden;
}

.client-logo::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    opacity: 0;
    transform: rotate(30deg);
    background: rgba(255, 255, 255, 0.13);
    background: linear-gradient(
        to right, 
        rgba(255, 255, 255, 0.13) 0%,
        rgba(255, 255, 255, 0.13) 77%,
        rgba(255, 255, 255, 0.5) 92%,
        rgba(255, 255, 255, 0.0) 100%
    );
}

.client-logo:hover::after {
    opacity: 1;
    animation: shine 1.5s ease;
}

@keyframes shine {
    to {
        left: 130%;
    }
}

/* Pulse effect for the theme toggle */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--accent-primary-rgb, 247, 35, 35), 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(var(--accent-primary-rgb, 247, 35, 35), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--accent-primary-rgb, 247, 35, 35), 0);
    }
}

.theme-toggle:hover {
    animation: pulse 1.5s infinite;
}


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

/* Particle effect for buttons */
.btn-primary::after,
.btn-secondary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.btn-primary:hover::after,
.btn-secondary:hover::after {
    animation: particles 0.8s ease;
}

@keyframes particles {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(15);
        opacity: 0;
    }
}

/* Team Section Styles */
.team-section {
    padding: var(--space-xxxl) 0;
    background-color: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.team-container {
    display: flex;
    flex-direction: column;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    width: 100%;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.team-card {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--transition-base);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    flex-basis: 30%;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:nth-child(1) {
    flex-basis: 100%;
}

.team-card:hover {
    background-color: rgba(var(--accent-primary-rgb, 247, 35, 35), 0.03);
    border-color: var(--border-medium);
}

.team-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-light));
    transition: height 0.5s ease;
}

.team-card:hover::after {
    height: 100%;
}

.team-card::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    filter: blur(20px);
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    animation: gradientBorder 3s linear infinite;
    background-size: 300% 300%;
    background-image: linear-gradient(
        135deg,
        var(--accent-primary) 0%,
        var(--accent-light) 25%,
        var(--accent-primary) 50%,
        var(--accent-dark) 75%,
        var(--accent-primary) 100%
    );
}

.team-card:hover::before {
    opacity: 0.35;
}

.team-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    position: relative;
}

.team-card-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(to right, var(--accent-primary), transparent);
    transition: width 0.4s ease;
}

.team-card:hover .team-card-header::after {
    width: 100%;
}

.team-image {
    width: 90px;
    height: 90px;
    border-radius: 10px;
    border: 2px solid var(--border-medium);
    overflow: hidden;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}

.team-card:hover .team-image {
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(var(--accent-primary-rgb, 247, 35, 35), 0.3);
}

.team-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent-primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    mix-blend-mode: overlay;
}

.team-card:hover .team-image::before {
    opacity: 0.4;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: grayscale(20%);
}

.team-card:hover .team-image img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.team-header-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.team-name {
    font-size: 15px;
    font-weight: var(--fw-semibold);
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
    text-align: left;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

.team-card:hover .team-name {
    color: var(--accent-primary);
}

.team-name::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    /* background-color: var(--accent-primary); */
    transition: width 0.3s ease;
}

.team-card:hover .team-name::before {
    width: 100%;
}

.team-role {
    color: var(--accent-primary);
    font-size: 14px;
    font-weight: var(--fw-medium);
    text-align: left;
    position: relative;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.team-card:hover .team-role {
    opacity: 1;
    transform: translateX(5px);
}

.grades {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.grades p {
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    margin: 0;
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Role-specific colors for grade tags */
.role-ceo {
    border-color: rgba(255, 215, 0, 0.3);
    color: gold;
}

.role-ceo i {
    color: gold;
}

.team-card:hover .role-ceo {
    background-color: rgba(255, 215, 0, 0.1);
    border-color: gold;
}

.team-card .team-bio {
    text-align: left;
    position: relative;
    margin-left: 10px;
}

.team-card .team-bio::after{
    content: '';
    position: absolute;
    bottom: 0px;
    left: -10px;
    width: 2px;
    height: 100%;
    background-color: var(--chart-gray);
}

/* Developer Role - Blue */
.role-dev {
    border-color: rgba(52, 152, 219, 0.3);
    color: #3498db;
}

.role-dev i {
    color: #3498db;
}

.team-card:hover .role-dev {
    background-color: rgba(52, 152, 219, 0.1);
    border-color: #3498db;
}

/* Support Role - Green */
.role-support {
    border-color: rgba(46, 204, 113, 0.3);
    color: #2ecc71;
}

.role-support i {
    color: #2ecc71;
}

.team-card:hover .role-support {
    background-color: rgba(46, 204, 113, 0.1);
    border-color: #2ecc71;
}

/* Core Member Role - Purple */
.role-core {
    border-color: rgba(155, 89, 182, 0.3);
    color: #9b59b6;
}

.role-core i {
    color: #9b59b6;
}

.team-card:hover .role-core {
    background-color: rgba(155, 89, 182, 0.1);
    border-color: #9b59b6;
}

/* Designer Role - Pink */
.role-design {
    border-color: rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

.role-design i {
    color: #e74c3c;
}

.team-card:hover .role-design {
    background-color: rgba(231, 76, 60, 0.1);
    border-color: #e74c3c;
}

/* Project Manager Role - Orange */
.role-pm {
    border-color: rgba(230, 126, 34, 0.3);
    color: #e67e22;
}

.role-pm i {
    color: #e67e22;
}

.team-card:hover .role-pm {
    background-color: rgba(230, 126, 34, 0.1);
    border-color: #e67e22;
}

/* Marketing Role - Teal */
.role-marketing {
    border-color: rgba(26, 188, 156, 0.3);
    color: #1abc9c;
}

.role-marketing i {
    color: #1abc9c;
}

.team-card:hover .role-marketing {
    background-color: rgba(26, 188, 156, 0.1);
    border-color: #1abc9c;
}

/* General animation for all grade icons */
.grades p i {
    font-size: 10px;
    transition: all var(--transition-base);
}

.team-card:hover .grades p i {
    transform: rotate(10deg);
}

/* Responsive styles for team section */
@media (max-width: 992px) {
    .team-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .team-card {
        flex-direction: column;
        text-align: center;
    }
    
    .team-image {
        margin-bottom: var(--space-md);
    }
}

@media (max-width: 576px) {
    .team-card {
        padding: var(--space-md) var(--space-sm);
    }
}

.contact-form-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    position: relative;
}

.contact-form-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(to right, var(--accent-primary), transparent);
    transition: width 0.4s ease;
}

.contact-form:hover .contact-form-header::after {
    width: 100%;
}

.contact-form-icon {
    width: 90px;
    height: 90px;
    border-radius: 10px;
    border: 2px solid var(--border-medium);
    overflow: hidden;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}

.contact-form:hover .contact-form-icon {
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(var(--accent-primary-rgb, 247, 35, 35), 0.3);
}

.contact-form-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent-primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    mix-blend-mode: overlay;
}

.contact-form:hover .contact-form-icon::before {
    opacity: 0.4;
}

.contact-form-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: grayscale(20%);
}

.contact-form:hover .contact-form-icon img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.contact-form-header-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.contact-form-title {
    font-size: 15px;
    font-weight: var(--fw-semibold);
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
    text-align: left;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

.contact-form:hover .contact-form-title {
    color: var(--accent-primary);
}

.contact-form-title::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    /* background-color: var(--accent-primary); */
    transition: width 0.3s ease;
}

.contact-form:hover .contact-form-title::before {
    width: 100%;
}

.contact-form-subtitle {
    color: var(--accent-primary);
    font-size: 14px;
    font-weight: var(--fw-medium);
    text-align: left;
    position: relative;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.contact-form:hover .contact-form-subtitle {
    opacity: 1;
    transform: translateX(5px);
}

.contact-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.contact-form-group {
    flex: 1 1 100%;
    position: relative;
}

.contact-form-label {
    display: block;
    margin-bottom: var(--space-xs);
    font-size: 14px;
    font-weight: var(--fw-semibold);
    color: var(--text-primary);
    transition: color var(--transition-base);
}

.contact-form-input,
.contact-form-textarea,
.contact-form-select {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-family);
    transition: border-color var(--transition-base), background-color var(--transition-base);
}

.contact-form-input:focus,
.contact-form-textarea:focus,
.contact-form-select:focus {
    border-color: var(--accent-primary);
    background-color: var(--bg-secondary);
}

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

.contact-form-checkbox-group {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.contact-form-checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 14px;
    font-weight: var(--fw-semibold);
    color: var(--text-primary);
    cursor: pointer;
    transition: color var(--transition-base);
}

.contact-form-checkbox-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    background-color: var(--bg-primary);
    cursor: pointer;
    transition: background-color var(--transition-base), border-color var(--transition-base);
}

.contact-form-checkbox-input:checked {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.contact-form-checkbox-input:checked::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 12px;
    color: var(--bg-primary);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.contact-form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23333" viewBox="0 0 256 256"><rect width="256" height="256" fill="none"></rect><polyline points="208 96 128 176 48 96" fill="none" stroke="%23333" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
    padding-right: 32px;
}

.contact-form-submit {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: none;
    border-radius: var(--radius-md);
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    font-size: 16px;
    font-weight: var(--fw-semibold);
    cursor: pointer;
    transition: background-color var(--transition-base);
}

.contact-form-submit:hover {
    background-color: var(--accent-dark);
}

.contact-form-message {
    margin-top: var(--space-lg);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 14px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-base), transform var(--transition-base);
}

.contact-form-message.show {
    opacity: 1;
    transform: translateY(0);
}

.contact-form-message.success {
    background-color: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #2ecc71;
}

.contact-form-message.error {
    background-color: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

@media (max-width: 768px) {
    .contact-form {
        padding: var(--space-lg) var(--space-md);
    }
}

@media (max-width: 576px) {
    .contact-form {
        padding: var(--space-md);
    }
    
    .contact-form-row {
        flex-direction: column;
    }
}

/* Animated background for skills section */
.skills-section {
    position: relative;
    overflow: hidden;
}

.skills-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--accent-primary-rgb, 247, 35, 35), 0.03) 0%, transparent 50%, rgba(var(--accent-primary-rgb, 247, 35, 35), 0.03) 100%);
    animation: backgroundMove 15s ease infinite alternate;
    pointer-events: none;
}

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

/* Glitch effect for logo on hover */
.logo a:hover span {
    position: relative;
}

.logo a:hover span::before,
.logo a:hover span::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.logo a:hover span::before {
    color: #ff00ff;
    animation: glitch 0.4s linear infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    transform: translate(-2px, -2px);
}

.logo a:hover span::after {
    color: #00ffff;
    animation: glitch 0.4s linear infinite reverse;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
    transform: translate(2px, 2px);
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
    }
}

/* Add a subtle pulsing border effect */
@keyframes borderPulse {
    0%, 100% {
        border-color: var(--accent-primary);
    }
    50% {
        border-color: var(--accent-light);
    }
}

.ceo-card {
    animation: borderPulse 3s infinite;
}
