/* Modern Variables */
:root {
    --primary-color: #2c3e50;    /* Deep navy blue */
    --accent-color: #c0392b;     /* Deep crimson */
    --secondary-color: #d4af37;  /* Judicial gold */
    --text-color: #333333;       /* Dark gray for text */
    --light-text: #ffffff;       /* White for contrast */
    --bg-light: #f5f5f5;         /* Light gray background */
    --bg-dark: #1a252f;          /* Darker navy */
    --shadow-soft: 0 4px 6px rgba(0,0,0,0.1);
    --transition-smooth: all 0.3s ease;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --shadow-strong: 0 20px 40px rgba(0,0,0,0.2);
}

/* Global Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}

/* Modern Split Header */
.split-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-soft);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.header-left {
    display: flex;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-text {
    margin-left: 1rem;
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.logo-text .title {
    font-size: 0.9rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-right {
    display: flex;
    align-items: center;
}

.modern-nav {
    margin-right: 2rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    padding: 0.5rem 1rem;
}

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

.contact-btn {
    background: var(--accent-color);
    color: var(--white);
    border-radius: 4px;
    padding: 0.5rem 1.5rem;
}

.contact-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-color);
    transition: var(--transition-smooth);
}

/* Responsive Header */
@media (max-width: 992px) {
    .modern-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .split-header {
        padding: 1rem;
    }

    .logo-text h1 {
        font-size: 1.2rem;
    }

    .logo-text .title {
        font-size: 0.8rem;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    background: linear-gradient(135deg, #1a1a1a, #2c3e50);
    overflow: hidden;
    padding-top: 80px; /* Account for fixed header */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.4));
    z-index: 1;
}

#matter-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-left {
    flex: 0 0 40%;
    padding-right: 2rem;
    position: relative;
    perspective: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-container {
    position: relative;
    overflow: hidden;
    width: 400px;
    height: 500px;
    border-radius: 5px;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    transform-style: preserve-3d;
    animation: imageFloat 5s ease-in-out infinite;
}

.hero-image::before {
    content: '';
    position: absolute;
    inset: -10px;
    border: 2px solid #d4af37;
    border-radius: 7px;
    opacity: 0;
    transform: translateZ(-10px);
    transition: all 0.3s ease;
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(212, 175, 55, 0.2), rgba(255, 255, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-left:hover .hero-image {
    transform: translateY(-10px) rotateY(-5deg);
    box-shadow: 15px 15px 30px rgba(0,0,0,0.4);
}

.hero-left:hover .hero-image::before {
    opacity: 1;
    transform: translateZ(0) scale(1.05);
}

.hero-left:hover .hero-image::after {
    opacity: 1;
}

@keyframes imageFloat {
    0%, 100% {
        transform: translateY(0) rotateY(0);
    }
    50% {
        transform: translateY(-15px) rotateY(-2deg);
    }
}

.hero-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.3) 100%
    );
    transform: skewX(-25deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -75%;
    }
    20% {
        left: 125%;
    }
    100% {
        left: 125%;
    }
}

.hero-right {
    flex: 0 0 55%;
    padding-left: 2rem;
}

.hero-text {
    position: relative;
    z-index: 2;
    margin-bottom: 2rem;
    color: #fff;
    max-width: 600px;
}

.hero-title-wrapper,
.hero-subtitle-wrapper {
    position: relative;
    overflow: hidden;
}

.hero-title-wrapper {
    height: 8.5rem;
}

.hero-subtitle-wrapper {
    height: 2.5rem;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    padding: 0;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Cormorant Garamond', serif;
}

@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.2rem;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
        letter-spacing: 0.5px;
        line-height: 1.2;
        margin-bottom: 0.3rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
        letter-spacing: 0.3px;
    }
}

.hero-subtitle {
    font-size: 2rem;
    color: #d4af37; /* Gold color */
    margin-bottom: 2rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
}

.hero-cta {
    margin-top: 2rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    background: #fff;
    color: #1a1a1a;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.cta-button .arrow {
    margin-left: 1rem;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.cta-button:hover .arrow {
    transform: translateX(5px);
}

/* Responsive Hero */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
    
    .hero-title-wrapper {
        height: 7rem;
    }
}

@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding-top: 2rem;
    }
    
    .hero-left {
        flex: 0 0 auto;
        padding-right: 0;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .hero-right {
        flex: 0 0 auto;
        padding-left: 0;
        margin-top: 2rem;
    }
    
    .hero-text {
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-title-wrapper {
        height: 6rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 600px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-title-wrapper {
        height: 5rem;
    }
}

@media (max-width: 1200px) {
    .hero-image-container {
        width: 350px;
        height: 450px;
    }
}

@media (max-width: 992px) {
    .hero-image-container {
        width: 300px;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .hero-image-container {
        width: 250px;
        height: 350px;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 2rem 1rem;
        text-align: center;
    }

    .hero-title-wrapper {
        height: auto;
        min-height: 8rem;
        margin-bottom: 1rem;
    }

    .hero-title {
        font-size: 2rem;
        white-space: normal;
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle-wrapper {
        height: auto;
        min-height: auto;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        white-space: normal;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .hero-cta .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

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

/* Modern News Ticker */
.news-ticker {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    height: 50px;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ticker-label {
    background: var(--accent-color);
    color: var(--white);
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.ticker-label i {
    font-size: 1rem;
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    padding: 0 1rem;
}

.ticker-wrapper {
    display: flex;
    animation: tickerScroll 30s linear infinite;
    white-space: nowrap;
}

.ticker-wrapper:hover {
    animation-play-state: paused;
}

.ticker-item {
    color: var(--white);
    padding: 0 2rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.ticker-item:hover {
    opacity: 1;
}

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

/* Modern Section Styles */
.section-modern {
    padding: 8rem 10%;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

/* Practice Areas Cards */
.practice-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.practice-card-modern {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.practice-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.card-content {
    padding: 2rem;
    position: relative;
}

.icon-container {
    width: 70px;
    height: 70px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.icon-container i {
    font-size: 1.8rem;
    color: var(--accent-color);
}

.card-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 2rem;
    opacity: 0;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.practice-card-modern:hover .card-hover {
    opacity: 1;
}

/* Contact Section */
.contact-section {
    background: var(--light-bg);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    padding-right: 2rem;
}

.contact-subtitle {
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 1.5rem;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: none;
    border-bottom: 2px solid #ddd;
    background: transparent;
    transition: var(--transition-smooth);
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    outline: none;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:valid + label,
.form-group textarea:valid + label {
    top: -20px;
    font-size: 0.9rem;
    color: var(--accent-color);
}

.submit-btn-modern {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.submit-btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

/* Contact Form Styles */
.contact-form {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.95);
    color: #333;
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #d4af37;
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
    outline: none;
}

.submit-btn {
    width: 100%;
    padding: 12px 25px;
    background-color: #d4af37;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.submit-btn:hover {
    background-color: #c4a030;
    transform: translateY(-2px);
}

.loading-spinner {
    display: none;
}

.loading-spinner.active {
    display: inline-block;
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-top: 1rem;
    display: none;
    text-align: center;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    border: 1px solid #28a745;
    color: #28a745;
}

.alert-error {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid #dc3545;
    color: #dc3545;
}

/* Form validation styles */
.form-group input:invalid,
.form-group select:invalid,
.form-group textarea:invalid {
    border-color: #dc3545;
}

.form-group input:valid,
.form-group select:valid,
.form-group textarea:valid {
    border-color: #28a745;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-form {
        padding: 0 15px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.9rem;
    }
    
    .submit-btn {
        font-size: 1rem;
        padding: 10px 20px;
    }
}

/* Modern Footer Styles */
.modern-footer {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    color: var(--white);
    padding: 4rem 0 0;
    position: relative;
    overflow: hidden;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-info {
    padding-right: 2rem;
}

.footer-logo h2 {
    font-size: 2rem;
    font-family: 'Cormorant Garamond', serif;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.footer-title {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.5rem;
}

.footer-description {
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

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

.social-link:hover {
    background: var(--white);
    color: var(--accent-color);
    transform: translateY(-3px);
}

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

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

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--white);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255,255,255,0.8);
}

.contact-info li i {
    width: 20px;
    opacity: 0.9;
}

.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 1.5rem 0;
    margin-top: 2rem;
    position: relative;
    left: 0;
    right: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.footer-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: rgba(255,255,255,0.8);
}

.footer-bottom-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-bottom-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.separator {
    color: rgba(255,255,255,0.4);
}

/* Footer Responsive Design */
@media (max-width: 992px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-info {
        padding-right: 0;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bar {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }
}

/* About Section Styles */
.about-section {
    background: linear-gradient(135deg, var(--light-bg) 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.about-text {
    position: relative;
    padding: 2rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 3rem;
}

.experience-badge {
    position: absolute;
    top: -30px;
    right: 40px;
    width: 120px;
    height: 120px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: var(--shadow-soft);
    transform: rotate(-10deg);
}

.experience-badge .years {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.2;
}

.lead-text {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    max-width: 80%;
}

.detail-text {
    color: var(--secondary-color);
    line-height: 1.8;
    margin-bottom: 1rem;
}

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

.expertise-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.expertise-card:hover::before {
    transform: scaleX(1);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: var(--light-bg);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.expertise-card:hover .icon-wrapper {
    background: var(--gradient-primary);
}

.icon-wrapper i {
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: var(--transition-smooth);
}

.expertise-card:hover .icon-wrapper i {
    color: var(--white);
}

.expertise-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.expertise-card p {
    color: var(--secondary-color);
    line-height: 1.6;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    padding: 2rem;
    background: var(--gradient-primary);
    border-radius: 20px;
    color: var(--white);
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: 'Cormorant Garamond', serif;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Responsive Design for About Section */
@media (max-width: 768px) {
    .about-text {
        padding: 2rem 1.5rem;
    }

    .experience-badge {
        position: relative;
        top: 0;
        right: 0;
        margin: 0 auto 2rem;
        transform: rotate(0);
    }

    .lead-text {
        max-width: 100%;
        font-size: 1.2rem;
    }

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

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

    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 1rem;
    }

    .stat-item:last-child {
        border-bottom: none;
    }
}

/* Timeline Styles */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

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

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    width: 100%;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: translateX(-50%) scale(1.2);
    box-shadow: 0 0 15px rgba(var(--accent-color-rgb), 0.4);
}

.timeline-content {
    position: relative;
    width: calc(50% - 40px);
    padding: 25px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.timeline-item:nth-child(odd) .timeline-content {
    left: calc(50% + 40px);
}

.timeline-item:nth-child(even) .timeline-content {
    left: 0;
}

.timeline-header {
    margin-bottom: 20px;
}

.timeline-header h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 8px;
    font-family: 'Cormorant Garamond', serif;
}

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

.timeline-subtitle {
    color: var(--secondary-color);
    font-style: italic;
    margin-bottom: 15px;
}

.timeline-body {
    color: var(--text-color);
}

.timeline-list {
    list-style: none;
    padding-left: 0;
}

.timeline-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.timeline-list li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    top: 0;
}

.timeline-list ul {
    list-style: none;
    padding-left: 20px;
    margin-top: 8px;
}

.timeline-list ul li::before {
    content: '○';
}

/* Timeline Responsive Design */
@media (max-width: 768px) {
    .timeline::before {
        left: 40px;
    }

    .timeline-dot {
        left: 40px;
    }

    .timeline-content {
        width: calc(100% - 80px);
        left: 80px !important;
    }

    .timeline-date {
        font-size: 0.85rem;
    }

    .timeline-header h3 {
        font-size: 1.2rem;
    }
}

/* Education Section Styles */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.education-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.education-card:hover::before {
    transform: scaleX(1);
}

.education-icon {
    width: 60px;
    height: 60px;
    background: var(--light-bg);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.education-card:hover .education-icon {
    background: var(--gradient-primary);
}

.education-icon i {
    font-size: 1.8rem;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.education-card:hover .education-icon i {
    color: var(--white);
}

.education-content h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-family: 'Cormorant Garamond', serif;
}

.education-institute {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.education-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light-bg);
}

.education-university {
    color: var(--text-color);
    font-size: 0.9rem;
}

.education-year {
    background: var(--light-bg);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    color: var(--accent-color);
}

/* Responsive Design for Education Section */
@media (max-width: 768px) {
    .education-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .education-card {
        padding: 1.5rem;
    }

    .education-content h3 {
        font-size: 1.2rem;
    }

    .education-institute {
        font-size: 1rem;
    }
}

/* Gallery Section Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
    color: #fff;
    padding: 2rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-overlay h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.gallery-overlay p {
    font-size: 1rem;
    line-height: 1.4;
    opacity: 1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .gallery-image {
        height: 250px;
    }
    
    .gallery-overlay {
        padding: 1.5rem 1rem;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.98), rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7));
    }
    
    .gallery-overlay h3 {
        font-size: 1.2rem;
    }
    
    .gallery-overlay p {
        font-size: 0.9rem;
    }
}

/* Blog Section Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.blog-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

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

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

.blog-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.blog-content {
    padding: 2rem;
}

.blog-content h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-family: 'Cormorant Garamond', serif;
    line-height: 1.4;
}

.blog-date {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.blog-excerpt {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-tag {
    background: var(--light-bg);
    color: var(--accent-color);
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.blog-tag:hover {
    background: var(--accent-color);
    color: var(--white);
}

/* Blog Responsive Design */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 2rem;
    }

    .blog-content {
        padding: 1.5rem;
    }

    .blog-content h3 {
        font-size: 1.2rem;
    }

    .blog-excerpt {
        font-size: 0.9rem;
    }
}

/* Floating Action Buttons */
.floating-actions {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
}

.action-button {
    position: relative;
    transition: transform 0.3s ease;
}

.action-button:hover {
    transform: scale(1.1);
}

.action-button:hover .action-tooltip {
    opacity: 1;
    transform: translateX(-100%) scale(1);
}

.action-tooltip {
    position: absolute;
    right: calc(100% + 1rem);
    top: 50%;
    transform: translateX(-80%) translateY(-50%) scale(0.95);
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
    pointer-events: none;
}

.action-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 8px solid var(--primary-color);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.action-link {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: var(--shadow-strong);
    position: relative;
    overflow: hidden;
}

.action-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.whatsapp-chat {
    background: #25D366;
}

.call-button .action-link {
    background: var(--accent-color);
}

/* Pulse Animation for WhatsApp Button */
.whatsapp-button::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: #25D366;
    border-radius: 50%;
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    70% {
        transform: scale(1.3);
        opacity: 0;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .floating-actions {
        right: 1rem;
        bottom: 1rem;
        gap: 0.8rem;
    }

    .action-link {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .action-tooltip {
        display: none;
    }
}

/* Go to Top Button */
.go-top {
    position: fixed;
    left: 2rem;
    bottom: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

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

.go-top .scroll-top {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-strong);
    transition: all 0.3s ease;
}

.go-top:hover .scroll-top {
    transform: translateY(-5px);
    background: var(--accent-color);
}

.go-top .scroll-top i {
    transition: transform 0.3s ease;
}

.go-top:hover .scroll-top i {
    transform: translateY(-2px);
}

.go-top .action-tooltip {
    position: absolute;
    left: calc(100% + 1rem);
    top: 50%;
    transform: translateX(-20%) translateY(-50%) scale(0.95);
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
    pointer-events: none;
}

.go-top:hover .action-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) translateY(-50%) scale(1);
}

.go-top .action-tooltip::after {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-right: 8px solid var(--primary-color);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

/* Responsive Adjustments for Go to Top */
@media (max-width: 768px) {
    .go-top {
        left: 1rem;
        bottom: 1rem;
    }
    
    .go-top .scroll-top {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .go-top .action-tooltip {
        display: none;
    }
}

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

@keyframes scroll {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(20px);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .split-header {
        padding: 1rem 5%;
    }

    .modern-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .section-modern {
        padding: 4rem 5%;
    }
}

@media (max-width: 768px) {
    .news-ticker {
        height: 40px;
    }

    .ticker-label {
        padding: 0 1rem;
        font-size: 0.8rem;
    }

    .ticker-item {
        font-size: 0.85rem;
        padding: 0 1.5rem;
    }

    .hero-content {
        padding-top: 40px;
    }
}

/* Updated Floating Legal Icons Background */
.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.floating-icon {
    position: absolute;
    animation: floatIcon 15s linear infinite; /* Reduced from 20s to 15s for more frequent movement */
    z-index: -1;
    color: rgba(255, 255, 255, 0.15);  /* Increased opacity from typical 0.1 to 0.15 */
}

.floating-icon.small {
    font-size: 1.2rem;
}

.floating-icon.medium {
    font-size: 2rem;
}

.floating-icon.large {
    font-size: 3rem;
}

/* Different animation durations and delays for more variety */
.floating-icon:nth-child(2n) {
    animation-duration: 12s;
}

.floating-icon:nth-child(3n) {
    animation-duration: 18s;
}

.floating-icon:nth-child(4n) {
    animation-duration: 20s;
}

/* More starting positions for increased density */
.floating-icon:nth-child(8n+1) { left: 5%; }
.floating-icon:nth-child(8n+2) { left: 15%; }
.floating-icon:nth-child(8n+3) { left: 30%; }
.floating-icon:nth-child(8n+4) { left: 45%; }
.floating-icon:nth-child(8n+5) { left: 60%; }
.floating-icon:nth-child(8n+6) { left: 75%; }
.floating-icon:nth-child(8n+7) { left: 85%; }
.floating-icon:nth-child(8n+8) { left: 95%; }

/* Updated Animation keyframes with more movement */
@keyframes floatIcon {
    0% {
        transform: translateY(100vh) rotate(0deg) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(80vh) rotate(45deg) translateX(20px);
    }
    50% {
        transform: translateY(40vh) rotate(180deg) translateX(-20px);
    }
    90% {
        opacity: 1;
        transform: translateY(10vh) rotate(315deg) translateX(20px);
    }
    100% {
        transform: translateY(-100px) rotate(360deg) translateX(0);
        opacity: 0;
    }
}

/* Darker section specific styles with increased opacity */
.section-modern .floating-icons .floating-icon {
    color: rgba(44, 62, 80, 0.25); /* Darker blue */
}

.about-section .floating-icons .floating-icon {
    color: rgba(212, 175, 55, 0.3); /* Darker gold */
}

.experience-section .floating-icons .floating-icon {
    color: rgba(192, 57, 43, 0.25); /* Darker accent color */
}

.education-section .floating-icons .floating-icon {
    color: rgba(44, 62, 80, 0.28); /* Dark navy */
}

.gallery-section .floating-icons .floating-icon {
    color: rgba(212, 175, 55, 0.27); /* Dark gold */
}

.blog-section .floating-icons .floating-icon {
    color: rgba(44, 62, 80, 0.26); /* Dark blue */
}

.contact-section .floating-icons .floating-icon {
    color: rgba(192, 57, 43, 0.27); /* Dark red */
}

/* Additional size variations */
.floating-icon.tiny {
    font-size: 0.8rem;
}

.floating-icon.extra-large {
    font-size: 4rem;
}

/* Enhanced animation variations */
.floating-icon:nth-child(5n) {
    animation-duration: 14s;
    animation-timing-function: ease-in-out;
}

.floating-icon:nth-child(6n) {
    animation-duration: 16s;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-icon:nth-child(7n) {
    animation-duration: 22s;
    animation-timing-function: ease-in;
}

/* More starting positions for increased variety */
.floating-icon:nth-child(12n+1) { left: 2%; }
.floating-icon:nth-child(12n+2) { left: 12%; }
.floating-icon:nth-child(12n+3) { left: 22%; }
.floating-icon:nth-child(12n+4) { left: 35%; }
.floating-icon:nth-child(12n+5) { left: 48%; }
.floating-icon:nth-child(12n+6) { left: 52%; }
.floating-icon:nth-child(12n+7) { left: 65%; }
.floating-icon:nth-child(12n+8) { left: 78%; }
.floating-icon:nth-child(12n+9) { left: 88%; }
.floating-icon:nth-child(12n+10) { left: 92%; }
.floating-icon:nth-child(12n+11) { left: 96%; }
.floating-icon:nth-child(12n+12) { left: 98%; }

/* Additional animation keyframe variations */
@keyframes floatIconAlt1 {
    0% {
        transform: translateY(100vh) rotate(0deg) translateX(0);
        opacity: 0;
    }
    15% {
        opacity: 1;
        transform: translateY(75vh) rotate(60deg) translateX(30px);
    }
    45% {
        transform: translateY(45vh) rotate(180deg) translateX(-30px);
    }
    85% {
        opacity: 1;
        transform: translateY(15vh) rotate(300deg) translateX(30px);
    }
    100% {
        transform: translateY(-100px) rotate(360deg) translateX(0);
        opacity: 0;
    }
}

@keyframes floatIconAlt2 {
    0% {
        transform: translateY(100vh) rotate(0deg) translateX(0);
        opacity: 0;
    }
    20% {
        opacity: 1;
        transform: translateY(70vh) rotate(-45deg) translateX(-40px);
    }
    60% {
        transform: translateY(35vh) rotate(-180deg) translateX(40px);
    }
    80% {
        opacity: 1;
        transform: translateY(20vh) rotate(-315deg) translateX(-40px);
    }
    100% {
        transform: translateY(-100px) rotate(-360deg) translateX(0);
        opacity: 0;
    }
}

/* Apply alternate animations */
.floating-icon:nth-child(3n) {
    animation-name: floatIconAlt1;
}

.floating-icon:nth-child(5n) {
    animation-name: floatIconAlt2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .floating-icon.extra-large {
        font-size: 3rem;
    }
    .floating-icon.tiny {
        font-size: 0.6rem;
    }
}
