/* ===== VARIABLES ===== */
:root {
    /* Dark Theme Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121f;
    --bg-tertiary: #1a1a2e;
    --text-primary: #f8f8f8;
    --text-secondary: #b8b8d4;
    --accent-primary: #00d9ff;
    --accent-secondary: #7928ca;
    --accent-tertiary: #ff0080;
    --gradient-primary: linear-gradient(45deg, var(--accent-secondary), var(--accent-primary));
    --gradient-secondary: linear-gradient(45deg, var(--accent-tertiary), var(--accent-secondary));
    --shadow-primary: 0 4px 20px rgba(0, 217, 255, 0.2);
    --shadow-secondary: 0 4px 20px rgba(255, 0, 128, 0.2);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    
    /* Light Theme Colors (for theme toggle) */
    --light-bg-primary: #f8f9fa;
    --light-bg-secondary: #e9ecef;
    --light-bg-tertiary: #dee2e6;
    --light-text-primary: #212529;
    --light-text-secondary: #495057;
    --light-accent-primary: #0077ff;
    --light-accent-secondary: #6610f2;
    --light-accent-tertiary: #e83e8c;
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

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

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

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

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--bg-tertiary);
    border-radius: 50%;
    border-top-color: var(--accent-primary);
    border-bottom-color: var(--accent-tertiary);
    animation: spin 1s ease-in-out infinite;
}

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

/* ===== UTILITY CLASSES ===== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.dark-section {
    background-color: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.underline {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    z-index: -1;
}

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

.primary-btn {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-primary);
}

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

.secondary-btn:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.highlight {
    color: var(--accent-primary);
    position: relative;
    display: inline-block;
    text-align: center;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.highlight:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    padding: 15px 0;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    background-color: rgba(10, 10, 15, 0.95);
}

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

.logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent-tertiary);
    border-radius: 50%;
    bottom: 5px;
    right: -8px;
}

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

.nav-menu li {
    margin-left: 30px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

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

.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 3px;
}

/* ===== HOME SECTION ===== */
.home-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle at center, var(--bg-secondary) 0%, var(--bg-primary) 70%);
    overflow: hidden;
}

.home-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="none" width="100" height="100"/><rect fill="none" stroke="rgba(0,217,255,0.05)" stroke-width="1" x="25" y="25" width="50" height="50" transform="rotate(45 50 50)"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

.home-content {
    text-align: center;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.home-text h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.home-text h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.typewriter {
    overflow: hidden;
    border-right: 3px solid var(--accent-primary);
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: 0.15em;
    animation: typing 3.5s steps(30, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--accent-primary) }
}

.home-text p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-secondary);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 6px;
    height: 6px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: wheel 1.5s infinite;
}

.scroll-arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: rotate(45deg);
    margin-top: 10px;
}

@keyframes wheel {
    0% { top: 10px; opacity: 1; }
    100% { top: 30px; opacity: 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%); }
}
/* ===== ABOUT SECTION ===== */
.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 50px;
    margin-bottom: 60px;
    text-align: center;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.image-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.hexagon {
    position: relative;
    width: 100%;
    padding-bottom: 115%;
    overflow: hidden;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: var(--gradient-primary);
    display: flex;
    justify-content: center;
    align-items: center;
}

.hexagon-inner {
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    background: var(--bg-primary);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hexagon-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;                /* Fill entire hexagon */
    object-position: center top;      /* Move image upward to show forehead */
    transition: none;
}


/* Remove hover animation */
.hexagon:hover .hexagon-inner img {
    transform: none;
}


.about-text {
    flex: 1;
    min-width: 300px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    text-align: center;
    width: 100%;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    text-align: left;
    width: 100%;
}

.about-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--bg-tertiary);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-primary);
    transition: var(--transition);
}

.detail-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-secondary);
}

.detail-item i {
    color: var(--accent-primary);
    font-size: 1.2rem;
}

.timeline {
    margin-top: 80px;
}

.timeline h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--gradient-primary);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--accent-primary);
    border-radius: 50%;
    top: 30px;
    right: -10px;
    box-shadow: var(--shadow-primary);
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content {
    background-color: var(--bg-tertiary);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-primary);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-secondary);
}

.timeline-content h4 {
    margin-bottom: 10px;
    color: var(--accent-primary);
}

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

/* ===== SKILLS SECTION ===== */
.skills-categories {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.skill-category h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.skill-category h3 i {
    color: var(--accent-primary);
}

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

.skill-item {
    background-color: var(--bg-tertiary);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-primary);
}

.skill-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-secondary);
}

.skill-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
    font-size: 2rem;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.skill-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--gradient-primary);
    z-index: -1;
    transition: var(--transition);
}

.skill-item:hover .skill-icon::before {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--accent-primary);
}

.skill-icon.python::before { background: linear-gradient(45deg, #306998, #FFD43B); }
.skill-icon.sql::before { background: linear-gradient(45deg, #F29111, #00758F); }
.skill-icon.c::before { background: linear-gradient(45deg, #283593, #5C6BC0); }
.skill-icon.java::before { background: linear-gradient(45deg, #F89820, #5382A1); }
.skill-icon.html::before { background: linear-gradient(45deg, #E44D26, #F16529); }
.skill-icon.css::before { background: linear-gradient(45deg, #264DE4, #2965F1); }
.skill-icon.js::before { background: linear-gradient(45deg, #F0DB4F, #323330); }
.skill-icon.flask::before { background: linear-gradient(45deg, #000000, #FFFFFF); }
.skill-icon.tensorflow::before { background: linear-gradient(45deg, #FF6F00, #FFA800); }
.skill-icon.pytorch::before { background: linear-gradient(45deg, #EE4C2C, #F05732); }
.skill-icon.sklearn::before { background: linear-gradient(45deg, #F89939, #3499CD); }
.skill-icon.keras::before { background: linear-gradient(45deg, #D00000, #FF0000); }
.skill-icon.opencv::before { background: linear-gradient(45deg, #5C3EE8, #3E9CEE); }
.skill-icon.git::before { background: linear-gradient(45deg, #F05032, #F34F29); }
.skill-icon.postgresql::before { background: linear-gradient(45deg, #336791, #0A6EA5); }
.skill-icon.pycharm::before { background: linear-gradient(45deg, #21D789, #07C3F2); }
.skill-icon.vscode::before { background: linear-gradient(45deg, #0078D7, #0097FB); }
.skill-icon.colab::before { background: linear-gradient(45deg, #F9AB00, #FF6F00); }

.skill-item h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.skill-level {
    width: 100%;
    height: 8px;
    background-color: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skill-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    position: relative;
    animation: skillFill 2s ease-out forwards;
    transform-origin: left;
}

@keyframes skillFill {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

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

.project-card {
    background-color: var(--bg-tertiary);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-primary);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-secondary);
}

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

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

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

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

.project-links {
    display: flex;
    gap: 20px;
}

.project-link {
    width: 50px;
    height: 50px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition);
    transform: translateY(20px);
    opacity: 0;
}

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

.project-link:hover {
    background: var(--gradient-primary);
    box-shadow: 0 0 15px var(--accent-primary);
}

.project-link:nth-child(2) {
    transition-delay: 0.1s;
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--accent-primary);
}

.project-info p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-tech span {
    background-color: var(--bg-secondary);
    color: var(--accent-primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    transition: var(--transition);
}

.project-tech span:hover {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-primary);
}

/* ===== CERTIFICATIONS SECTION ===== */
.cert-slider {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
}

.cert-container {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
}

.cert-card {
    min-width: 300px;
    background-color: var(--bg-tertiary);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-primary);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cert-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-secondary);
}

.cert-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 3px solid var(--accent-primary);
    padding: 5px;
}

.cert-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.cert-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.cert-issuer {
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 5px;
}

.cert-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 20px;
}

.prev-btn, .next-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.prev-btn:hover, .next-btn:hover {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-primary);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--bg-tertiary);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
}

/* ===== EXPERIENCE SECTION ===== */
.experience-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    width: 2px;
    height: 100%;
    background: var(--gradient-primary);
}

.exp-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 50px;
}

.exp-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
    box-shadow: var(--shadow-primary);
    z-index: 1;
}

.exp-content {
    background-color: var(--bg-tertiary);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-primary);
    transition: var(--transition);
    position: relative;
}

.exp-content::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 15px;
    width: 20px;
    height: 20px;
    background-color: var(--bg-tertiary);
    transform: rotate(45deg);
}

.exp-item:hover .exp-content {
    transform: translateY(-5px);
    box-shadow: var(--shadow-secondary);
}

.exp-date {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--bg-secondary);
    color: var(--accent-primary);
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.exp-content h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.exp-content h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--accent-primary);
}

.exp-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.exp-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.exp-tech span {
    background-color: var(--bg-secondary);
    color: var(--accent-primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    transition: var(--transition);
}

.exp-tech span:hover {
    background: var(--gradient-primary);
    color: var(--text-primary);
}

/* ===== CONTACT SECTION ===== */
.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
    font-size: 1.2rem;
    box-shadow: var(--shadow-primary);
    transition: var(--transition);
}

.contact-item:hover i {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--accent-primary);
}

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

.social-link {
    width: 50px;
    height: 50px;
    background-color: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow-primary);
}

.social-link:hover {
    background: var(--gradient-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-secondary);
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background-color: var(--bg-tertiary);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 20px;
    color: var(--text-secondary);
    pointer-events: none;
    transition: var(--transition);
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    left: 15px;
    font-size: 0.8rem;
    background-color: var(--bg-tertiary);
    padding: 0 5px;
    color: var(--accent-primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: transparent;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--bg-tertiary);
    padding: 50px 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

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

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--text-primary);
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-primary);
}

.scroll-top-btn.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-secondary);
}

/* ===== THEME TOGGLE BUTTON ===== */
.theme-toggle-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-secondary);
    color: var(--text-primary);
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: var(--shadow-secondary);
    transition: var(--transition);
}

.theme-toggle-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--accent-tertiary);
}

.theme-toggle-btn .fa-sun {
    display: none;
}

.theme-toggle-btn .fa-moon {
    display: block;
}

body.light-theme {
    --bg-primary: var(--light-bg-primary);
    --bg-secondary: var(--light-bg-secondary);
    --bg-tertiary: var(--light-bg-tertiary);
    --text-primary: var(--light-text-primary);
    --text-secondary: var(--light-text-secondary);
    --accent-primary: var(--light-accent-primary);
    --accent-secondary: var(--light-accent-secondary);
    --accent-tertiary: var(--light-accent-tertiary);
}

body.light-theme .theme-toggle-btn .fa-sun {
    display: block;
}

body.light-theme .theme-toggle-btn .fa-moon {
    display: none;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1200px) {
    .home-text h1 {
        font-size: 3.5rem;
    }
    
    .home-text h2 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    .home-text h1 {
        font-size: 3rem;
    }
    
    .home-text h2 {
        font-size: 1.8rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .timeline-item {
        width: 100%;
        padding: 20px 0 20px 70px;
        text-align: left;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-container::before {
        left: 20px;
    }
    
    .timeline-dot {
        left: 10px;
        right: auto;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .navbar-container {
        padding: 0 20px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-primary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin-left: 0;
    }
    
    .home-text h1 {
        font-size: 2.5rem;
    }
    
    .home-text h2 {
        font-size: 1.5rem;
    }
    
    .home-text p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .section {
        padding: 70px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .home-text h1 {
        font-size: 2rem;
    }
    
    .home-text h2 {
        font-size: 1.2rem;
    }
    
    .about-text h3 {
        font-size: 1.5rem;
    }
    
    .skill-category h3 {
        font-size: 1.5rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
    
    .cert-card {
        min-width: 250px;
    }
    
    .scroll-top-btn,
    .theme-toggle-btn {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

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

@keyframes glow {
    0% { text-shadow: 0 0 5px rgba(0, 217, 255, 0.5); }
    50% { text-shadow: 0 0 20px rgba(0, 217, 255, 0.8), 0 0 30px rgba(0, 217, 255, 0.5); }
    100% { text-shadow: 0 0 5px rgba(0, 217, 255, 0.5); }
}

/* Apply animations to elements */
.logo, .home-text h1 {
    animation: glow 3s infinite;
}

.hexagon, .skill-icon, .exp-icon, .contact-item i {
    animation: pulse 2s infinite;
}

.scroll-indicator, .project-card, .cert-card {
    animation: float 4s ease-in-out infinite;
}